Contents
Page-10
Prev
Next
Page+10
Index
Code Generation
The Code Generator is the final stage of the compiler.
It accepts
intermediate code from the Parser and produces machine code for a
particular target machine.
Output code may be:
- Absolute code with fixed memory
addresses, either to a file (executable or .exe)
or directly into memory.
- Relocatable code that can be
converted to run at different places in memory; this is done
by the link editor or linker.