{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Apr19 - CSE302 Compiler Design Instructor Dr Liang Cheng...

This preview shows pages 1–5. Sign up to view the full content.

CSE302: Compiler Design Instructor: Dr. Liang Cheng Department of Computer Science and Engineering P.C. Rossin College of Engineering & Applied Science Lehigh University April 19, 2007

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

View Full Document
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/19/07 Outline Recap Intermediate code generation Things related to project part II Summary
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/19/07 Translation of Boolean Expressions (1) S if( {B.true=newlabel(); B.false=S.next;} B) S1 {S.code= B.code || label(B.true) || S1.code if B goto L1 goto L2 L1: S1 L2: B B1 || B2 S if( {B.true=newlabel(); B.false=S.next; B1.true=B.true; B1.false=newlabel(); B2.true=B.true; B2.false=B.false;} B1||B2) {B.code= B1.code || label(B1.false) || B2.code } S1 {S.code=B.code || label(B.true) || S1.code if B1 goto L1 goto L2 L2: if B2 goto L1 goto L3 L1: S1 L3:

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

View Full Document
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/19/07 Translation of Boolean Expressions (2) B B1 && B2 S if( { B.true=newlabel(); B.false=S.next; B1.true=newlabel(); B1.false=B.false; B2.true=B.true; B2.false=B.false;} B1&&B2) {B.code=B1.code || label(B1.true)
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern