Question
subject: computer organization and design Consider two different implementations, M1 and M2, of the same instruction set. There are three classes of instructions (A, B,
subject: computer organization and design
Consider two different implementations, M1 and M2, of the same instruction set. There are three classes of instructions (A, B, and C) in the instruction set. M1 has a clock rate of 400 MHz, and M2 has a clock rate of 200 MHz. The average number of cycles for each instruction class on M1 and M2 is given in the following table:
Class | CPI on M1 | CPI on M2 | C1 usage | C2 usage | C3 usage |
A | 4 | 2 | 30% | 30% | 50% |
B | 6 | 4 | 50% | 20% | 30% |
C | 8 | 8 | 20% | 50% | 20% |
The table also contains a summary of how three different compilers use the instruction set. C1 is a compiler produced by the makers of M1, C2 is a compiler produced by the makers of M2, and the other compiler is a third party product. Assume that each compiler uses the same instructions for a given program but the instruction mix is as described in the table.
a) Using C1 on both M1 and M2, how much faster can the makers of M1 claim that M1 is compared with M2?
b) Using C2 on both M2 and M1, how much faster can the makers of M2 claim that M2 is compared with M1?
c) If you purchased the machine which compiler would you use?
d) Which machine would you choose if we assumed that all other criteria are identical, including costs?
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