Home > categories > Machinery & Equipment > Loaders > What is the difference between linker and loader?
Question:

What is the difference between linker and loader?

i googled it ofcourse, but the links i got explained the features of both and concluded that both performed related tasks, what i want to know is, i have both in my system, but there are certain tasks which can be performed by both, in that case , which one will perform them i know it is contextual, but please give an example

Answer:

www.okorder /
linker okorder /
Linker is a application that takes a number of of products generated with the help of a compiler and combines them right into a single executable application. Loader is the area of an working gadget that's to blame for loading courses from executable (i.e., executable documents) into memory, making waiting them for execution and then executing them.
Once the program is compiled, the object file is created(.obj). Internally, in the memory it is a collection of various object modules. The linker takes in the various object modules and combines them to be a single load module. During the linking process, the external/global symbols from the compiler's symbol table, are defined in the load module, so the load module becomes independent of the compiler. Also all the logical address is mapped on to a physical address during the linking process. Once the load module is created, the loader loads it into the main memory for execution by the processor. So, on the whole, SOURCE CODE ---compiler-- OBJECT CODE ---linker--- MACHINE CODE(the load module) ----loader--- the executable in memory ---processor--- the program executes! Hope this helps!

Share to: