1 Code Generation Code generator phase ... - VTU e-Learning
1 Code Generation Code generator phase ... - VTU e-Learning
1 Code Generation Code generator phase ... - VTU e-Learning
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Fig 9.4 DAG for the three address code<br />
Fig 9.4 shows the DAG for the above three address code<br />
Example: Consider the following statements<br />
c = c + d<br />
e = b + c<br />
Fig 9.5 shows the DAG for the above three address code<br />
Fig 9.5 DAG for the three address code<br />
Example: Consider the following expression<br />
a = -b * c + d<br />
The three address code will be<br />
t1 = –b<br />
t2 = t1 * c<br />
t3 = t2 + d<br />
a = t3<br />
b<br />
⊕ e<br />
c1 ⊕ b<br />
c0 d0<br />
a, t3 ⊕<br />
t2 * d<br />
t1Ө c<br />
17