Question: Assume the following C code: A[0] = A[20] + A[30]; A[1] = A[10] + A[40]; Assume that the base address in X1, and the offset
Assume the following C code: A[0] = A[20] + A[30]; A[1] = A[10] + A[40]; Assume that the base address in X1, and the offset is placed in X0 (after calculating the offset). 1- Translate the code above into LEGv8 assembly instructions. 2- Find any data hazard in the assembly instructions. 3- In case of data hazard, could you reorder the instructions to reduce or eliminate pipeline stalls? Explain your answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
