Question: The following tables summarizes the instructions present in some program (Table 1) as well as two different processors (Table 2). Operation Instruction Count ALU 4000
The following tables summarizes the instructions present in some program (Table 1) as well as two different processors (Table 2).

Operation Instruction Count ALU 4000 Load 1400 Store 900 Branch 500 Operation Processor 1 ALU 2 Load 6 Store 2 Branch 4 Processor 2 3 3 3 4. Table 1: Program Instructions Table 2: Processor Instruction Cycles (a) (5 Marks] Calculate the ideal CPI of this program running on Processor 1. (b) [5 Marks] Calculate the ideal CPI of this program running on Processor 2. (c) [5 Marks] Assuming that Processor 1 operates at 2.6 GHz and Processor 2 operates at 2.2 GHz calculate the CPU time for the program when run on each processor. On which processor is the program faster? (Hint: for easy calculations, 1GHz = 1 x 10Hz) (d) [5 Marks) In terms of the three factors calculating CPU time, explain why the faster processor from part (C) is indeed the faster one. How could a programmer change the program described in Table 1 so that it would run faster on the other processor? Explain why this change would work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
