What are Loader and Linker in C?

Loader in C

Loader is the part of Operating System which is responsible to loads the executable from the disk into the primary memory unit (RAM) for execution.

You know that every program runs in primary memory so it allocated the memory space in primary memory for that executable program and gives the instruction to the program.

Linker in C

As name suggest, linker links different process, piece of code and data into a single file. Linker also link modules into system library. It takes object modules from assembler as input and forms an executable file as output for loader.

You can also read

Leave a Comment

error: Don\'t make piracy - Write your own content :)