Question
Compilers can have a profound impact on the performance of an application on given a processor. This problem will explore the impact compilers have on
Compilers can have a profound impact on the performance of an application on given a processor. This problem will explore the impact compilers have on execution time.
(a) For the same program, two different compilers are used. The table above shows the execution time of the two different compiled programs. Find the average CPI for each program given that the processor has a clock cycle time of 1 ns.
(b) Assume the average CPIs found in (a) but that 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 of the processor running compiler As code versus the clock of the processor running compiler Bs code?
(c) A new compiler is developed that uses only 600 million instructions and has an average CPI of 1.1. What is the speedup of using this new compiler versus using Compiler A or B on the original processor of (a)?
lb. Compiler A Compiler B Execution No. Execution No. Instructions Time Instructions Time 1.00E +09 1.20E+09 1.8s 1.8s 1.00E+09 1.1s 1.20E+09 1.5sStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started