|
Compiler, loader and linker - Oct 29, 2008, 17:35 pm by Amit Satpute
What is a compiler?
A compiler is a program that takes a source code as an input and converts it
into an object code. During the compilation process the source code goes
through lexical analysis, parsing and intermediate code generation which is
then optimized to give final output as an object code.
Explain loader and linker.
A loader is a program used by an operating system to load programs from a
secondary to main memory so as to be executed.
Usually large applications are written into small modules and are then compiled
into object codes. A linker is a program that combines these object modules to
form an executable.
|