Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Friday, January 24, 2020

Any position independent code is best written using which of

Any position independent code is best written using which of the following addressing modes ?
AAbsolute
BDirect
CIndirect
DRelative.

Answer:Relative.

Explanation:

The relative addressing mode permits the writing of "position-independent code," programs which will be properly executed by the processor regardless of where they are located in memory.
The entire program (together with any necessary data) may be picked up from one region of memory and moved to another with no adverse effect. In order to be location-independent a program may not refer to any specific location by address. All references to memory must be through the use of relative addressing.

Akilesh Kharvi
answered Dec 8 '2016 at 21:52

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories