Question: A processor executes 5 classes of instructions, with the CPI for each class as given below: Class CPI A 1 B 2 C 2 D
A processor executes 5 classes of instructions, with the CPI for each class as given below:
Class CPI
A 1
B 2
C 2
D 3
E 5
A certain benchmark program contains these instruction classes in the ratio 5:4:3:2:1. A compiler optimization can change the ratio of the instructions to 4:3:2:2:1 while reducing the total number of instructions by 5%.
a) What is the average CPI before and after the compiler optimization?
b) By what percentage will the performance of the processor (as measured by executing the said benchmark program) go up by this optimization? (Assume the clock cycle time remains constant)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
