|
|
Code Generation
11.0 Introduction
The code generation phase translates the intermediate representation
into "code". In these modules, the final code is assembly language code
which is then assembled, linked and executed. Another options is object
code which is output by many production-quality compilers. Still another
method is to interpret the intermediate representation to execute the
program directly.
The preparation for code generation phase decides how to allocate
registers and memory. Thhe code generation phase translates the
intermediate representation to assembly language using these registers
and memory assignments.
|