Question: Go Tools Window Help HW 5 statement.pdf (1 page) HW 5: Performance Problems 1) Computer A has a 5 GHz clock and executes program P
Go Tools Window Help HW 5 statement.pdf (1 page) HW 5: Performance Problems 1) Computer A has a 5 GHz clock and executes program P in 30 seconds with an average CPI (cycles per instruction) of 3.0. How many instructions does it execute for program P? 2) Computer B has a 2 GHz clock. It executes P with the same number of instructions as computer A with an average CPI 1.0. How long does it take to execute P? p comaure the pertormae of computer B and computer on program P. Which is faster? by how much? 4) A new compiler for computer A compiles program P so that it executes only half as many instructions. Unfortunately, the CPI for computer A on these instructions is 4.0. How long does it take to execute the newly compiled program ? 5) Compare the performance of computer B (with the old compiler) to computer A (with the new compiler) on program P. Which is faster? by how much
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
