Friday, June 15, 2012

Intermediate code


          After syntax and semantics analysis some compiler generates an intermediate
representation of the source program. This representation should be easy to produce and
easy to translate into the target program
            Thus the intermediate code generation phase transforms the parse tree into an
intermediate language
            On popular type of intermediate language is called as "three-address code" which
is like the assembly language  the three-address code for the statement
            
 Position: = initial + rate*60 
temp1:=into real(60)
 temp2:=id3+temp1
 temp3:=id2+temp2         
      id1:=temp3

0 comments:

Post a Comment