Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(e) Suppose two different compilers, compiler A and compiler B, are used to compile a program P thereby generating two versions, PA and PB, of

image text in transcribed

(e) Suppose two different compilers, compiler A and compiler B, are used to compile a program P thereby generating two versions, PA and PB, of program P. The table below shows the latency and dynamic instruction count of the program P. i. Compute the average overall CPI for program PA and PB if each program executes on a CPU with an operating time period of 1 ns per cycle. ii. Assume the average CPIs computed for PA and PB found in part (i), except that now programs PA and PB execute on two different CPUs. If the execution times on the two CPUs are the same, how much faster is the clock frequency of the CPU executing program PA versus the clock frequency of the CPU executing program PB? iii. A new compiler C is designed. Program P is compiled on compiler C and compiler C generates program version program PC. Program PC comprises 600M instructions and has an average CPI of 1.1 cycles/instr. when executing on the CPU of part (i). What is the speedup of executing program PC on the CPU of part (i) versus executing programs PA and PB on the same CPU

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions