Question: 2. Analyze the following MIPS code which is developed as follows: lw St1, 0(St0) lw $t2, 4 (St0) add St3, Stl, $t2 sw St3, 12(St0)

2. Analyze the following MIPS code which is developed as follows: lw St1, 0(St0) lw $t2, 4 (St0) add St3, Stl, $t2 sw St3, 12(St0) lwSt4, 8(St0) add St5, Stl, $t4 sw St5, 16 (St0) Assuming all variables are in memory and are addressable as offsets from St0 Find the hazards in the preceding code segment and reorder the instructions to avoid any pipeline stalls
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
