The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+10 votes
1.2k 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.5k points)
edited by | 1.2k 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


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

37,996 questions
45,492 answers
131,517 comments
48,591 users