Question: Q.2) Compilers can have a profound impact on the performance of an application. Assume that for a program, compiler A results in a dynamic instruction

 Q.2) Compilers can have a profound impact on the performance of

Q.2) Compilers can have a profound impact on the performance of an application. Assume that for a program, compiler A results in a dynamic instruction count (ICA) of 9.0E8 and has a CPU time or an execution time (ETA) of 1.1s, while compiler B results in a dynamic instruction count (ICB) of 1.4E9 and an execution time (ETB) of 1.7s. 2.a) Find the average CPI (CPI) for each program given that the processor has a clock cycle time (Tclk) of 2.5ns. 2.b) Assume the compiled programs run on two different processors. If the execution times on the two processors are the same, how much faster is the clock rate of the processor running compiler A's code versus the clock rate of the processor running compiler B's code? 2.c) A new compiler is developed that uses 1.3E9 instructions and has an average CPI of 1.9. What is the speedup of using this new compiler over using compiler A or B on the original processor? (comparing results to part a)

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 Databases Questions!