Code to Running Process
Parts of the system
Compiler
- C/C++ compiler
- Front end
- Parse command line
- Finds header files
- Expands all macros
- Combines all headers and code file into one
- Parses the combined file
- Intermediate language
- Target specific backend
- Object file
Linker
- Combines Multiple object files into executables or dynamically linked libraries
- Resolves imports
- Fixes up relocations
- Reads ld file for memory allocation instructions and linker symbols
- Produces exe or dynamic library