Friday, June 15, 2012

Phases of a compiler


Phases of a compiler: A compiler operates in phases. A phase is a logically interrelated operation that takes source program in one representation and produces output in another representation. The phases of a compiler are shown in fig1.3
There are two phases of compilation.
1.      Analysis (Machine Independent/Language Dependent)
2.      Synthesis(Machine Dependent/Language independent)

2 comments: