FOR FREE CONTENT

Loader

 

 

Functionalities of Loader:

1. Load the program from the hard disk to the main memory. It calculates the size of the program and creates memory space 

 

2. Relocation: Convert relocatable addresses to absolute addresses. 

 

3. Symbol Resolution: Resolve all symbols which are not resolved at linking time, generally shared libraries (DLL).

 

Overall compilation procedure step by step: 

1.  Complete time: (Symbol names → Relocatable address)

 

2.  Link time:  (Relocatable address → New Relocatable address): Relocation

 

3.  Load time: (Relocatable address → Absolute address): Relocation

 

4.  Run time: DLL

 

Step of processing for the user program

 

# Sometimes linker and loader are combining together use as that why is called linker loader.