Compiler Lecture 1
Compiler Lecture 1
Pre-processor
Pre-processed code
Compiler
Target assembly code
Assembler
Relocatable machine code
Library Files/
Relocatable Linker
modules
Executable machine code
Loader
Loader
Pre-processor
Compiler
Linker is a computer program that links and
merges various object files together in order to
Assembler make an executable file.
It searches and locates referenced
Linker module/routines in a program and determines
the memory location where these codes will be
Loader loaded, making the program instruction to have
absolute references.
Target Machine Code
CSCI415 | Compiler Design Lecture 1 26
5. Loaders
Source Program