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 />
A[ i ]<br />
<strong>CSCI</strong> <strong>565</strong> - <strong>Compiler</strong> <strong>Design</strong><br />
Computing an Array Address<br />
<strong>Spring</strong> <strong>2011</strong><br />
• baseA + ( i – low ) x sizeof(baseType(A))<br />
• In general: base(A) + ( i – low ) x sizeof(baseType(A))