Advertisement

Search Topics....

Sunday, May 12, 2013

Compiler Designing Phases

The compiler being a complex program is developed through several phases.  The task of compiler design can be divided very broadly into two sub-tasks.

I .  The analysis of a source program
II.  The synthesis of a object program


I .  The analysis of a source program

The anaysis task consists of 3 phases. They are
i)    Lexical analysis
ii)   Syntax analysis
iii)  Semantic analysis

II.  The synthesis of a object program 

The synthesis task consists of 2 phases. They are
i)    Code generation
ii)   Code optimization