Question: 1.1 Assume that we compile and run a program with two different compilers on the same machine. Compiler A results in a dynamic instruction count
1.1
Assume that we compile and run a program with two different compilers on the same machine. Compiler A results in a dynamic instruction count of 2.0 * 10^9 and has an execution time of 2.8 s, while compiler B results in a dynamic instruction count of 2.5 * 10^9 and an execution time of 3s. Find the average CPI for the executable generated by compiler A and compiler B respectively given that the processor has a clock cycle time of 1 ns. Now suppose that we run the compiled programs on two different processors and get the same execution time. Compare the clock of the processor running compiler A's code versus the clock of the processor running compiler B's code, which clock is faster? By how much
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
