Question: Two different compilers are being tested for a 1GHz machine with three different classes of instructions: Class A. Class B, and Class C, which require
Two different compilers are being tested for a 1GHz machine with three different classes of instructions: Class A. Class B, and Class C, which require 2, 4 and 6 cycles (respectively). Both compilers are used to produce code for a large piece of software, Compiler 1 generates code with 4 billion Class A instructions, I billion Class B instructions, and I billion Class instructions Compiler 2 generates code with 8 billion Class A instructions, 1 billion Class B instructions, and I billion Class C instructions. The effective CPI of complier 2 is 4.5 0 2.1 3.7 O 2.6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
