Professional Documents
Culture Documents
Week 2 Lec 3 CC
Week 2 Lec 3 CC
Introduction to Compiler
Compiler History
Properties of Compiler
Understanding related
Compiler phases
Determine the operations implied by the source program which are recorded in a tree
structure.
Break up the source program into constituent pieces and creates intermediate representation
of Source program
During analysis, the operations implied by the source are determine and recorded in a
hierarchical structure called a tree.
If the analysis part detects that the source program is either syntactically ill formed or
semantically unsound, then it must provide informative messages, so the user can take
corrective action
The analysis part also collects information about the source program and stores it in a data
structure called a symbol table, which is passed along with the intermediate representation to
the synthesis part
1. Lexical Analysis
2. Syntax Analysis
3. Sementic Analysis
4. Intermediate Code Representation
5. Code Optimization
6. Code Generation
The symbol table, which stores information about the entire source
program, is used by all phases of the compiler
Q&A