Consider the following program segment: I₁: MOV R₃, R₇ ; R₃ ← (R₇) I₂: Load…

Consider the following program segment:

I₁: MOV R₃, R₇ ; R₃ ← (R₇)

I₂: Load R₈, (R₃) ; R₈ ← Mem(R₃)

I₃: Add R₃, R₃, 4 ; R₃ ← (R₃) + 4

I₄: Load R₉, (R₃) ; R₉ ← Mem(R₃)

I₅: BLE R₈, R₉, L₃ ; Branch if (R₈) > (R₉)

What types of dependencies were included in the above program?

  1. A.

    Write after write and read after write

  2. B.

    Write after write and write after read

  3. C.

    Read after write and write after read

  4. D.

    Write after write, read after write, and write after read

Attempted by 61 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…