The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+10 votes
1.3k views

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?

  1. $0, 200, 500, 600$
  2. $0, 200, 1000, 1600$
  3. $200, 500, 600, 800$
  4. $200, 700, 1300, 2100$
asked in Compiler Design by Veteran (59.6k points)
edited by | 1.3k views

1 Answer

+20 votes
Best answer

answer - B

first module loaded starting at address $0$. Size is $200$. hence it will occup first $200$ address last address being $199$. Second module will be present from $200$ and so on.

answered by Loyal (9k points)
edited by
0
first module loaded starting at address 0. Size is 200. hence it will occup first 200 address last address being 199. Second module will be present from 200 and so on
0
Can you explain it more clearly ??


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

41,147 questions
47,708 answers
147,680 comments
62,407 users