Exercises from Patterson and Hennessy

Exercise 2.21

What is the CPI for a machine (Mcomp) with a clock rate of 500MHz, with the following measurements of the performance of instructions:

Instruction class % of instructions executed
vs. base machine
A 90
B 90
C 85
D 95

Exercise 2.22

How much faster is Mcomp than Mbase?

Exercise 2.23

The hardware and compiler improvements can both be implemented in one machine (Mboth). How much faster is Mboth than Mbase?

Exercise 2.24

CPU performance improves by about 3.4% per month. Assume the base machine has performance equal to its competitors. Which optimization would you choose to perform? Assume that if you do not perform any optimization, your processor improves at 3.4% per month. That is Mopt and Mcomp will be competing against processors which have improved at 3.4% per month for 6 months. Mboth will be competing against processors which have improved at 3.4% per month for 8 months.

Optimization Time to implement Machine name
Hardware 6 months Mopt
Compiler 6 months Mcomp
Both 8 months Mboth


CSE 378 Spring 2002 - Section 5
First Previous Page 2 Next Last