mohit007kumar00
mohit007kumar00
Branch Unspecified
12 Jun 2010

What is relocating loader?

hi friend's

anybody have idea about what is relocating loader and how it is different from other loaders.

😒

sushant005

sushant005

Branch Unspecified
13 Jun 2010
It is a type of loader which load the program anywhere in the program.
Initially the programmers write their main program is so that it would transfer to the location assigned to the square root subroutine(SQRT).
the problem associated with this was that if the length of the program increased that may overlay the SQRT subroutine so to avoid this problem programmer used the subroutine that referred to each other symbolically rather then with the address part of the program.So the Relocating loader placed the subroutine in arbitrary core location.
vishnu priya

vishnu priya

Branch Unspecified
13 Jun 2010
The relocating loader will load the program anywhere in memory, altering the various addresses as required to ensure correct referencing. The decision as to where in memory the program is placed is done by the Operating System, not the programs header file. This is obviously more efficient, but introduces a slight overhead in terms of a small delay whilst all the relative offsets are calculated. The relocating loader can only relocate code that has been produced by a linker capable of producing relative code.
sushant005

sushant005

Branch Unspecified
15 Jun 2010
@ Kangyuataii,
What you have written is totally making no sense to what is being asked in this thread.
please don't copy paste and read the question again it is about what is relocating loader?
Ankita Katdare

Ankita Katdare

Computer Science
19 Mar 2014
@sushant005 That's a really informative reply! Thank you.
pratik bembalkar

pratik bembalkar

Computer Science
30 Apr 2019

what is direct linking loader?

Share this content on your social channels -

Only logged in users can reply.