Friday, July 16, 2021

Difference Between Linker and Loader

 Difference Between Linker and Loader : 

 

S.No.LINKERLOADER
1The main function of Linker is to generate executable files.Whereas main objective of Loader is to load executable files to main memory.
2The linker takes input of object code generated by compiler/assembler.And the loader takes input of executable files generated by linker.
3Linking 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.
4Linkers are of 2 types: Linkage Editor and Dynamic Linker.Loaders are of 4 types: Absolute, Relocating, Direct Linking, Bootstrap.
5Another use of linker is to combine all object modules.It helps in allocating the address to executable codes/files.
6Linker 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

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide If you're looking to host a Laravel project on Hostinger’s hPa...