Target code
Source code
Scanner
Parser
Semantic analyzer
Source code optimizer/
Intermediate code generator
Code generator
Target code optimizer
Tokens
Syntax Tree
Annotated Tree
Intermediate code
Target code
Identify logical pieces of the description.
Identify how those pieces relate to each other.
Identify the meaning of the overall structure.
Design one possible structure and
Simplify the intended structure
Fabricate the structure
Improve the resulting structure
Literal table
Symbol table
Error handler
Auxiliary components that
interact with some phases
2