CS450 Compiler Design
81
3) Code Generation
•
Assumes that program has been thoroughly checked and is
well formed (scope & type rules)
•
Takes into account semantics of the source language as well
as the target language.
•
Transforms source program into target code.
Code Generation
Decorated Abstract Syntax Tree
Object Code