1,791 views
0 votes
0 votes

Consider the following assembly language program:
I1: Move R3, R7 /R3 ← (R7)/
I2: Load R8, (R3) /R8 ← Memory (R3)/
I3: Add R3, R3, 4 /R3 ← (R3) + 4/
I4: Load R9, (R3) /R9 ← Memory (R3)/
I5: BLE R8, R9, L3 /Branch if (R9) > (R8)/
This program includes WAW,RAW, and WAR dependencies. Show these


soluton: is this correct

WAW=1(Output data dependency)

WAR=1(anti data dependency)

RAW=3(true data dependency)

1 Answer

2 votes
2 votes
WAW   {I1, I3}

WAR    {I2, I3}

RAW    {I1, I2} {I1, I3} {I2, I5} {I3, I4} {I4, I5}
edited by

Related questions

0 votes
0 votes
1 answer
1
junaid ahmad asked Nov 26, 2018
337 views
Is Cycles required 11 or 14 ?