CS450 Compiler Design
74
Different Phases of a Compiler
•The different phases can be seen as different transformation steps to transform source code into object code. •The different phases correspond roughly to the different parts of the language specification:
•Syntax analysis <-> Syntax
•Contextual analysis <-> Contextual constraints
•Code generation <-> Semantics