Question: compiler problems?thx (20%) consider a three-address code t Assume a compiler generates the corresponding assembly statements (shown in Figure 1) for this code. Figure 2

compiler problems?thx (20%) consider a three-address code "t Assume a compiler generatescompiler problems?thx

(20%) consider a three-address code "t Assume a compiler generates the corresponding assembly statements (shown in Figure 1) for this code. Figure 2 shows the register descriptor and address descriptor before the code generation. The register R3 is selected for t. Please describe the contents of the register descriptor and address descriptor after the code generation 3 atb" where a and b are variables, and t is a temporary variable Reg?ster descriptor Address descriptor ID R2,b 1 load b into R2 ADD R3,R1,R2 ST a,R1 store R1 into a R1 R2 R3 R1 b Figure 1: Figure 2

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!