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 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 DocumentRight 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 DocumentRight 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 ± 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
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/06/2008 for the course CSE 302 taught by Professor Cheng during the Spring '07 term at Lehigh University .

Page1 / 9

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

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online