Written by Vijay. Posted in General Reference on 03 July 2009.
Hot 27355 hits 0 favoured
Before we know about the phases of compiler,we must know waht is compiler.

Compiler :

Compiler is a simple program  which reads a program written in one language (i.e., High Level Language (or) Source Language) and it translates to an equivalent target program (i.e., Low Level Language).

Now we are going to  know  what are the different phases of compilers.

Phases of Compiler:

Compiler consists of 2 phases.

1.Analysis Phase

2.Synthesis phase

1.Analysis Phase :

Analysis Phase performs 3 actions namely

a)Lexical analysis - it contains a sequence of characters called tokens.Input is source program & the output is tokens.

b)syntax analysis - input is token and the output is parse tree

c)Semantic analysis - input is parse tree and the output is expanded version of parse tree

2.Synthesis Phase :

Synthesis Phase performs 3 actions namely

d)Intermediate Code generation - Here all the errors are checked & it produce an intermediate code.

e)Code Optimization - the intermediate code is optimized here to get the target program

f) Code Generation - this is the final step & here the target program code is generated.


Author: Vijay

441 21813 17
I am Business Man
  • No comments found
Powered by CjBlog

Latest Articles

The Indian armed forces, more particularly the army have a long history of valor and bravery. The present Indian army traces it's lineage to the days of
India is passing through a baptism by fire as the Muslims, other minorities and large sections of Hindus castigate the present government for bring in
Background America is the largest ( area wise) democracy in the world.To get an idea of its size, one can compare it to India and see that it covers a


Related Articles

Akshay Kumar As Serious Actor Akshay Kumar the actor from Bollywood is one of my most favorite filmy personalities. I love his acting as well the witty
Han Suyin was a famous writer of Chinese origin. This was her pen name. Her real name was Rosalie Matilda Kuanghu Chow.She was  probably born in 1916
The Lord declared that whenever there was degeneration of virtues he would come again to establish dharma. And, twelve hundred years ago, when the Sanatana
Chanakya, the master of practical diplomacy, is accepted and admired as a daring genius by the Indian and Western scholars. This greatest diplomat of the
Raj Kapoor Birth Date - 14th December 1924   Death Date - 2nd June 1988 Raj Kapoor titled with “The Show Man" as well as "Charlie Chaplin