Homework Solution: Consider the following program to be executed:…

    Consider the following program to be executed: I1: Load R1, A       /R1 ← Memory (A)/ I2: Add R2, R1      /R2 ← (R2) + R(1)/ I3: Add R3, R4      /R3 ← (R3) + R(4)/ I4: Mul R4, R5       /R4 ← (R4) + R(5)/ I5: Comp R6         /R6 ← (R6)/ I6: Mul R6, R7      /R3 ← (R3) + R(4)/ What dependencies exist in the program?

    Expert Answer

     
    in this program all the statement are dependent on

    Consider the aftercited program to be executed:

    I1: Load R1, A       /R1 ← Remembrance (A)/
    I2: Add R2, R1      /R2 ← (R2) + R(1)/
    I3: Add R3, R4      /R3 ← (R3) + R(4)/
    I4: Mul R4, R5       /R4 ← (R4) + R(5)/
    I5: Comp R6         /R6 ← (R6)/
    I6: Mul R6, R7      /R3 ← (R3) + R(4)/

    What dependencies exist in the program?

    Expert Repartee

     

    in this program total the announcement are hanging on each other in the primary announcement in the remembrance of A is loading in the R1 and in the second announcement we are adding R1 and R2 and storing it into R2 and in the third announcement adding R3 and R4 abd storing it into R3

    in the forth announcement we entertain to discussing R4 and R5 excluding in the starement we are doing restoration of R4 and R5 and storing it into R4

    in the fifth announcement we entertain to parallel R6 with another vaariable excluding the shifting is missing

    in the sixth announcement we entertain to discuss R6 and R7 excluding we are adding R3 and R4 and storing it into R3