| CSC448: Overview of Today's Class [1/14] | ![]() ![]() ![]() |
Simplifying compilation units via source to source transformations:
int x = 1; --> int x;
x = 1;
l: --> l1:
if (e) { if (e) {
l: l2:
s s
} }
if (e) --> if (e)
s1 goto l1;
else goto l2;
s2 l1:
s1
goto l3;
l2:
s2
goto l3;
l3:
x = e1+f(e2); --> int t1;
int t2;
int t3;
t1 = e1;
t2 = e2;
t3 = f(t2);
x = t2 + t3;
Comments: