Explain difference between relocatable and non relocatable program.
Answers
Answered by
9
Hope you like it...
A non- relocatable program is one that cannot be executed in any memory area other than the area starting on its translated origin. For example a hand coded machine language program. A relocatable program is one that can be processed to relocate it to a desired area of memory. For example an object module. The difference between a relocatable and a non-relocatable program is the availability of information concerning the address sensitive instructions in it. A self-relocating program is the one that can perform the relocation of its own address sensitive instructions. A self-relocating program can execute in any area of memory. This is very important in time-sharing operating system where load address of a program is likely to be different for different executions.
A non- relocatable program is one that cannot be executed in any memory area other than the area starting on its translated origin. For example a hand coded machine language program. A relocatable program is one that can be processed to relocate it to a desired area of memory. For example an object module. The difference between a relocatable and a non-relocatable program is the availability of information concerning the address sensitive instructions in it. A self-relocating program is the one that can perform the relocation of its own address sensitive instructions. A self-relocating program can execute in any area of memory. This is very important in time-sharing operating system where load address of a program is likely to be different for different executions.
Answered by
3
- A relocatable program may use many part of memory address in run time of a program. This type of program uses relative addressing and its address space can be change at run as requirement.
- A Non-Relocatable program runs in fix address space. Location of program data fix at the time of compilation.
Similar questions