Spring 2011 CSCI 565 - Compiler Design
Spring 2011 CSCI 565 - Compiler Design
Spring 2011 CSCI 565 - Compiler Design
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Pedro Diniz<br />
pedro@isi.edu<br />
x = a * b + c * d - e * f;<br />
S<br />
id =<br />
x<br />
E * E<br />
id<br />
a<br />
id<br />
b<br />
<strong>CSCI</strong> <strong>565</strong> - <strong>Compiler</strong> <strong>Design</strong><br />
Assignment: Example<br />
E<br />
id<br />
c<br />
E<br />
E + E<br />
E<br />
*<br />
id<br />
d<br />
E<br />
-<br />
E<br />
E * E<br />
id<br />
e<br />
id<br />
f<br />
t1 = e * f;<br />
t2 = c * d;<br />
t3 = t2 - t1;<br />
t4 = a * b;<br />
t5 = t4 + t3;<br />
x = t5;<br />
<strong>Spring</strong> <strong>2011</strong>