Computer Science, asked by diamondchauhan217, 7 months ago

 Operating Systems will allocate sections of RAM to the processes as part of ​

Answers

Answered by ChitranshuJ20
2

Answer:

Operating Systerm

Explanation:

Mark me as brainliest

Answered by pritamrajvanshi653
1

Answer:

When you compile your program, the compiler sets up (relative) positions of memory areas for variables in each piece. The linker takes several separately compiled pieces and libraries, and creates an executable file, which lays out places for each variable. The executable file is loaded into the memory by a loader, which (under the control of the operating system) loads the program at a address in memory, asigning fixed memory positions to the layout given before.

Modern programming languages also allow you to define functions/procedures/blocks with local variables, which get asigned memory addresses at runtime. When the procedure/function is called or the block entered, memory is asigned to the variable; on exit the space is reclaimed.

But then again, modern operating systems use virtual memory, so the variables will be placed at fixed virtual addresses only... the operating system shuffles the memory areas around at will.

And just to muddy the waters a bit more, while analyzing your program the compiler might decide to have the value residing in different places (in memory or in a register) during the program, have several variables share the same space when they aren't used at the same time; or sometimes even get rid of the variable completely.

Explanation:

pls mark me as brain list ❤❤

Similar questions