
Code Generation and
Machine-dependent
Optimization
What you will learn in this chapter
Key Words
9
code generation, intermediate representation, target language, instruction set,
registers, data structures, control constructs, procedures and functions, activation
record, code optimization, machine-dependent optimization, register allocation
The last phase of compilation is Code Generation. This phase takes the Intermediate Representation
of the original source program as input and produces a semantically equivalent program in the target
language as output. Depending upon the nature of the target language, there may be subsequent steps
necessary ...