Generate the three address code for


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 

0 comments:

Post a Comment

 
page