Question: 3 . ( 8 points ) Compilers can highly impact the performance of an application. Consider choosing between two different compilers, A and B ,

3.(8 points) Compilers can highly impact the performance of an application.
Consider choosing between two different compilers, A and B, to run the same high-level program. The program compiled using compiler A results in 1 billion instructions and has an execution time of 1.1 seconds. The program compiled using compiler B results in 1.2 billion instructions and an execution time of 1.5 seconds. If the compiled programs run on 1 GHz processors, what is the average CPI for the programs compiled using compiler A and compiler B?
Assume the compiled programs using compiler A and B run on two different processors that have different clock cycle times but the same CPIs from part A. If the execution times on the two processors are the same, how much faster is the clock of the processor running compiler A's code versus the clock of the processor running compiler B's code?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!