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 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
Get step-by-step solutions from verified subject matter experts
