20.04.2013 Views

Spring 2011 CSCI 565 - Compiler Design

Spring 2011 CSCI 565 - Compiler Design

Spring 2011 CSCI 565 - Compiler Design

SHOW MORE
SHOW LESS

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 />

do<br />

<strong>CSCI</strong> <strong>565</strong> - <strong>Compiler</strong> <strong>Design</strong><br />

Loop Example<br />

Source Code Three Address Instructions<br />

i = i + 1;<br />

while (a[i] < v);<br />

Where did this<br />

come from ?<br />

L: t1 = i + 1<br />

i = t1<br />

t2 = i * 8<br />

t3 = a[t2]<br />

if t3 < v goto L<br />

<strong>Spring</strong> <strong>2011</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!