{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info iconThis preview shows pages 1–6. 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 10, 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/10/07 Outline Recap Intermediate code generation Summary and homework
Background image of page 2
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/10/07 Intermediate Representations Compiler front end Syntax tree Directed acyclic graph (DAG) for expression Before creating a new node, check whether an identical node already exists Three-address code An address A name: a pointer to its symbol-table entry A constant A compiler-generated temporary Symbolic labels L1, L2, …
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/10/07 Three-Address Instruction Forms x = y op z x = op y x = y goto L x = y[i] x[i] = y x = &y x = *y *x = y if x goto L and ifFlase x goto L if x relop y goto L Procedure calls and returns param x 1 param x 2 param x n call p, n or y = call p, n return w
Background image of page 4
Instructor: Dr. Liang Cheng CSE302: Compiler Design 04/10/07
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
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}