Question: c. Assume an add takes 1 cycle, a mult 4 cycles, and a sub 2 cycles. Two different compilers produce the following loops for
c. Assume an add takes 1 cycle, a mult 4 cycles, and a sub 2 cycles. Two different compilers produce the following loops for the same code: mult add add add mult mult sub sub add Loop add Loop 1000000 1000000 times times Program A Program B i. What's the CPI for both A and B? j. How long it take to run each program on a 200 MHz CPU?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
