A linker needs 4 modules of lengths 200. 800. 600 and 500
A linker needs 4 modules of lengths 200. 800. 600 and 500 words. If they are loaded in that order, what are the relocation constants ?
A0. 200. 500. 800
B0. 200. 1000. 1600
C200. 500, 600. 800
D200. 700. 1300, 2100
All DiscussionsClick here to write answer
Answer : 0, 200, 1000, 1600
Explanation:
In general the linker keeps the sum of the lengths of all the modules it has already processed, this sum is the relocation constant for the next module.
So, in this case the relocation constants are: 0, 200, (200+800)=1000, (1000+600)=1600.
All Comments
Post your answers here:
Post