Now we WILL discuss the role of the linker and loader in compilation
a linker combines one or more object files and possible some library code into either some executable, some library or a list of error message.
In high level language some built in header files or library are stored, these library are predefined and these contain some basic function which are essential for executing the programme.
These function are linked to the libraries by a programme called linker.
If linker does not find a library of a function then it informs compiler and then compiler generate an error. The compiler automatically invokes the linker as the last step in compiling a program.
loader is a program that loads machine codes on a program into the system memory.
In computing, a loader is the part of an operating system that is responsible for loading programs. It is one of the essential stages in the process of starting a program, because it places program into memory and prepare them for execution.
In computing, a linker or link editor is computer programme that takes one or more object files generated by a compiler and combines them into a single executable file, library file, or another object file.