##### Data dependency

Consider the following instructions:

I1: R1 =100

I2: R1=R2+R4

I3:R2=R4+25

I4:R4=R1+R3

I5:R1=R1+30

Calculate sum of (WAR,WAW,RAW) dependencies the above instructions.

Consider the following instructions:

I1: R1 =100

I2: R1=R2+R4

I3:R2=R4+25

I4:R4=R1+R3

I5:R1=R1+30

Calculate sum of (WAR,WAW,RAW) dependencies the above instructions.

11 ( 4+3+4)

can you show what are they??

Main point here to note:

while counting RAW dependencies, we will consider only adjacent instructions.

So, there are 0 RAW dependeny.

The answer is 7.

No we don't care about adjacent instructions CHECK THIS

http://cs.stackexchange.com/questions/47622/read-after-writeraw-hazard

@ prabhanjan .. actually I saw the adjacency point in made easy explaination, initially I also counted without considering this point. Which is more reliable ??

## Pages