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 />
E → L { if (L.offset = NULL) then<br />
}<br />
else<br />
E.place = L.place;<br />
E.place = newtemp;<br />
<strong>CSCI</strong> <strong>565</strong> - <strong>Compiler</strong> <strong>Design</strong><br />
E.code = gen(E.place = L.place[L.offset]);<br />
S → L = E { if L.offset = NULL then<br />
}<br />
else<br />
E.code = gen(L.place = E.place);<br />
S.code = append(E.code,gen(L.place[L.offset] = E.place);<br />
L → id { L.place = id.place;<br />
}<br />
L.offset = null;<br />
<strong>Spring</strong> <strong>2011</strong><br />
SDT for Addressing Arrays Elements