








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









2
Parser action attribute code id=id ∗ –id + id ∗ –id id=E 1 ∗ –id + id ∗ –id E 1 .place = b id=E 1
2
2
4
a = b-c + b-c**
5 Representing Linear Codes
7 Simple Array of Quadruples
1
2
3
1
2
4
5
3
8 Array of Pointers to quads
1
2
3
1
2
4
5
10 Flow-of-Control Statements S → if E then S
| if E then S
else S
| while E do S
where E is a boolean expression
11 Flow-of-Control Statements Consider the statement if c < d then x = y + z else x = y – z One possible 3-address code could be
13 Flow-of-Control Statements we will assume that a three- address statement can be symbolically labeled the function newlabel() returns a new symbolic label each time it is called
14 Flow-of-Control Statements we will assume that a three- address statement can be symbolically labeled the function newlabel() returns a new symbolic label each time it is called