Question: Consider the following instructions and answer the questions given below: a= 5 ^ 2 ^ (3 + b) b= a+c if(x>a and x > c)

Consider the following instructions and answer the questions given below: a= 5 ^ 2 ^ (3 + b) b= a+c if(x>a and x > c) then 1 else 0 You are required to generate three address code of the above instructions. For this purpose, you have been provided with few lines of the three address code in random order without line numbers. Also subscripts of temporary variables are missing. Consider the following instructions and answer the questions given below: a= 5

1: How many (minimum) temporary variables are necessary?

2: Write down the COMPLETE three address code in correct order with proper line numbers.

t=2^t goto( ) t=5^t if(x>c) goto( ) a=t Next Instruction t=a+C b=t goto( ) t=1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!