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 

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!