retagged by
1,959 views
1 votes
1 votes

Identify the true statement from the given statements. Program relocation at run time

  1. requires transfer complete block to some memory locations
  2. requires both base address and relative address
  3. requires only absolute address
  1. $1$
  2. $1$ and $2$
  3. $1$ , $2$ and $3$
  4. $1$ and $3$
retagged by

3 Answers

0 votes
0 votes
Program relocation at run time transfer complete block to some memory locations. This requires as base address and block should be relatively addressed through this base address. This require both base address and relative address. So (B) is correct option.

Absolute addressing mode and indirect addressing modes is used for one instruction at one time, not for whole block So both are not suitable for program relocation at run time.
0 votes
0 votes

1. True

Program relocation at run time transfer complete block to some memory locations. This requires as base address and block should be relatively addressed through this base address.

2. True

In the simplest model of relocation, the loader performs the final binding of code to specific memory locations, and as it does so, it adjusts or relocates all of the pointers from one part of the loaded program to another.  Relocation involves adding a constant, the relocation base, to each address which refers to another location in the same program. The relocation base is usually the same as the address at which the first byte of the program is loaded. Thus, if the program is loaded at address $0000_{16}$, the relocation base is 0 and the addresses within the program are not modified. If the program is loaded at address $0100_{16}$, the relocation base is $100_{16}$ and this constant is added to each address within the program.

3. Wrong as it requires more than only absolute address. 

So B is correct.

Ref: http://homepage.divms.uiowa.edu/~jones/syssoft/fall00/notes/07link.html

https://www.geeksforgeeks.org/gate-gate-cs-2004-question-20/

0 votes
0 votes
Program relocation at run time transfer complete block to some memory locations.
→ This requires as base address and block should be relatively addressed through this base address .This require both base address and relative address
Answer:

Related questions

1 votes
1 votes
1 answer
1
Arjun asked Dec 7, 2018
1,463 views
If the period of a signal is $100$ ms. Then its frequency in Hertz is ______$10$$100$$1000$$10000$
2 votes
2 votes
3 answers
2
Arjun asked Dec 7, 2018
3,924 views
The ALU uses _____ to store intermediate resultCacheRegistersAccumulatorsStack