Question: Q . 2 ) Compilers can significantly impact the performance of an application. Assume the fol - lowing for a program: Compiler X: Dynamic Instruction

Q.2) Compilers can significantly impact the performance of an application. Assume the fol-
lowing for a program:
Compiler X:
Dynamic Instruction Count (ICx)=8108
Execution Time (ETx)=1.2 seconds
Compiler Y:
Dynamic Instruction Count (ICY)=1.6109
Execution Time (ETY)=2.4 seconds
Consider the processor has a clock cycle time (Tclk) of 3 ns, answer the following questions:
2.a) Find the average CPI for each compiler given the clock cycle time.
2.b) Assuming 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 X's code compared to the clock rate of the processor
running Compiler Y's code?
2.c) A new compiler is developed that uses 1.3109 instructions and has an average CPI
of 2.5. What is the speedup of using this new compiler over using Gmpiler X or
Compiler Y on the original processor? (Compare results to part a).)
Q . 2 ) Compilers can significantly impact the

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!