Tuesday 6 June 2017

Write intermediate code for a=b+c*d.


 Intermediate code for a=b+c*d is as follows:

t1=c
t2=d
t3=t1*t2
t4=b
t5=t4+t3
a=t5

Optimized Intermediate code will be as follows:
t1=c
t2=d
t3=t1*t2
t4=b+t3
a=t4

No comments:

Post a Comment