Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword or section
Like this
0 of .
Results for:
No results containing your search query
P. 1
Intermediate code generation1

Intermediate code generation1



|Views: 399|Likes:
Published by vsunny_488

More info:

Published by: vsunny_488 on Aug 30, 2008
Copyright:Traditional Copyright: All rights reserved


Read on Scribd mobile: iPhone, iPad and Android.
download as PPT or read online from Scribd
See more
See less



Intermediate code generation
Intermediate Code Generation
Translating source program into an“intermediate language.”
CPU Independent,
…yet, close in spirit to machine language.
Benefits is
Retargeting is facilitated
Machine independent Code Optimization can be applied.
Intermediate Code Generation
 Intermediate codes
are machine independent codes, but they are close tomachine instructions.
The given program in a source language is converted to an equivalent programin an intermediate language by the intermediate code generator.
Intermediate language can be many different languages, and the designer of thecompiler decides this intermediate language.
syntax trees
can be used as an intermediate language.
postfix notation
can be used as an intermediate language.
three-address code
(Quadruples) can be used as an intermediatelanguage
we will use quadruples to discuss intermediate code generation
quadruples are close to machine instructions, but they are not actualmachine instructions.

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Sarah Jain liked this
Shenbaga Vengat liked this
Kelvin Mathews liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->