Question: For the following code below: A: load R 1 , 0 ( R 0 ) / / ( R ) 1 = MEM [ R

For the following code below:
A: load R1,0(R0)//( R)1= MEM[R0+0]
B: store R2,16(R0)//( M)EM[R0+16]= R2
C: addi R2, R3, #4//( R)2= R3+4
D: add R3, R2, R3//( R)3= R2+ R3
E: store R4,16(R2)//( M)EM[R2+16]= R4
F: load R5,12(R4)//( R)5= MEM[R4+12]
Assume the following initial register content:
R0=36
R1=1000
R2=200
R3=16
R4=40
R5=500
Assume that the memory initially contains zero value at all memory locations.
(a) List all register dependences and indicate their types. For example, if instruction X has write after read dependence with instruction Y , write it in this format: WAR( X ->Y).
(b) List all memory dependences and indicate their types. Use the same format as in part (a)

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 Programming Questions!