Compiler Design
Q114.
Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries?Q115.
Consider a program P that consists of two source modules M1 and M2 contained in two different files. If M1 contains a reference to a function defined in M2 the reference will be resolved atQ117.
Which of the following statements are CORRECT? 1) Static allocation of all data areas by a compiler makes it impossible to implement recursion. 2) Automatic garbage collection is essential to implement recursion. 3) Dynamic allocation of activation records is essential to implement recursion. 4) Both heap and stack are essential to implement recursion.Q118.
Faster access to non-local variables is achieved using an array of pointers to activation records called aQ119.
The overlay tree for a program is as shown below:What will be the size of the partition (in physical memory) required to load (and run) this program?Q120.
A linker reads four modules whose lengths are 200, 800, 600 and 500 words, respectively. If they are loaded in that order, what are the relocation constants?