Difference Between Linker and Loader :
S.No. | LINKER | LOADER |
---|---|---|
1 | The main function of Linker is to generate executable files. | Whereas main objective of Loader is to load executable files to main memory. |
2 | The linker takes input of object code generated by compiler/assembler. | And the loader takes input of executable files generated by linker. |
3 | Linking can be defined as process of combining various pieces of codes and source code to obtain executable code. | Loading can be defined as process of loading executable codes to main memory for further execution. |
4 | Linkers are of 2 types: Linkage Editor and Dynamic Linker. | Loaders are of 4 types: Absolute, Relocating, Direct Linking, Bootstrap. |
5 | Another use of linker is to combine all object modules. | It helps in allocating the address to executable codes/files. |
6 | Linker is also responsible for arranging objects in program’s address space. | Loader is also responsible for adjusting references which are used within the program. |
No comments:
Post a Comment