2a Write Three Address Code Following Statement B C C B C 4m C Q37020122

2A. Write Three Address Code for the following statement. if(a < b + c) c=b*c; 4M a=a-c;

2A. Write Three Address Code for the following statement. if(a < b + c) c=b*c; 4M a=a-c; Show transcribed image text 2A. Write Three Address Code for the following statement. if(a


Answer


source code:

if(a<b+c)

a=a-c;

c=b*c;

three address code:

t1=b+c;

t2=a<t1;

IfZ t2 goto L1;

t3=a-c;

a=t3;

L1: t4=b*c;

c=t4;

If you have any doubts please post a comment Thankyou…….

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.