Question: Problem #9 Consider a machine with two instruction classes, whose CPI measurements and code size for the same program from two different compilers on the
Problem #9 Consider a machine with two instruction classes, whose CPI measurements and code size for the same program from two different compilers on the same ISA are given below: Code from Instruction count Instruction count Instruction class CPI for this instruction class Compiler 1 Compiler 2 for class A 2 million for class B 1 million 1.2 million million 13 Assume that the machine's clock cycle time is 10 ns. (i) Which code sequence will execute faster according to execution time? (ii) Which code sequence will execute faster according to MIPS? (iii) Does MIPS rating give a true picture of performance in this question? If not, explain why MIPS is not a good measure of computer system performance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
