For the following code sequence check the existence of data hazards. ADD R3,…

For the following code sequence check the existence of data hazards.

ADD R3, R2, R1: R3= R2 + R1

SUB R5, R1, 1: R5 = R1 -1

Which of the following hazard is present in above code?

  1. A.

    RAW

  2. B.

    WAR

  3. C.

    WAW

  4. D.

    No hazard

Attempted by 134 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…