JanWednesday,7,

Generate the three address code for

0 Comments


while (i<10)
{x := 0; i := i + 1;
}
The three address code can be generated as follows
100
L1 : if i<10 goto L2
101
Goto Lnext
102
L2 : x = 0
103
i = i + 1
104
goto L1
105
Lnext 

 
page