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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started