{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Apr17 - CSE302 Compiler Design Instructor Dr Liang Cheng...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE302: Compiler Design Instructor: Dr. Liang Cheng Department of Computer Science and Engineering P.C. Rossin College of Engineering & Applied Science Lehigh University April 17, 2007
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/17/07 Outline Recap Intermediate code generation Things related to project part II Summary
Background image of page 2
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/17/07 Translation of Control Flows S if ( B ) S1 S if ( B ) S1 else S2 S while ( B ) S1
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/17/07 Translation of Boolean Expressions B B1 || B2 B B1 && B2 B !B1 B true B false B E1 rel E2
Background image of page 4
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/17/07 Three-address Code of Switch switch ( E ) { case V1 : S1 case V2 : S2 case Vn-1 : Sn-1 default : Sn }
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/17/07 Three-address Code of Procedures n=f(a[i]); t1 = i*4 t2 = a[t1] param t2 t3 = call f,1 n = t3
Background image of page 6
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/17/07 Outline Recap Intermediate code generation Things related to project part II Summary
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Instructor: Dr. Liang Cheng
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}