About loaders and linkers

what are loaders and linkers

Hey @rohit.chandekar786, This is the definition of both in very layman terms.

A linker is a program that allows a user to link library programs or separate modules of code into their own programs. It is used to combine different modules of object code into one single executable code program. This may involve combining a program with library programs, or involve recombining blocks of object code from the same program, or a mixture of both. Ex. you imported a math library into your code, so linker will combine these the math library module with your code.

Whereas on other hand, a loader is a piece of software that chooses exactly where to put object code in RAM, ready for it to be run. It also adjusts the memory references in programs. Means it will decide on which address i should place the code from where it will be referenced in future.

Hope this resolved your doubt. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.