Spring 2011 CSCI 565 - Compiler Design
Spring 2011 CSCI 565 - Compiler Design
Spring 2011 CSCI 565 - Compiler Design
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Pedro Diniz<br />
pedro@isi.edu<br />
y = p(a, b+1)<br />
int p(x,z){<br />
}<br />
<strong>CSCI</strong> <strong>565</strong> - <strong>Compiler</strong> <strong>Design</strong><br />
Function Call Example<br />
Source Code Three Address Instructions<br />
return x+z;<br />
t1 = a<br />
t2 = b + 1<br />
putparam t1<br />
putparam t2<br />
y = call p, 2<br />
p: getparam z<br />
getparam x<br />
t3 = x + z<br />
return t3<br />
return<br />
<strong>Spring</strong> <strong>2011</strong>