Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

(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.5s

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions