Question: Solve following problems with step-by-step explanations. 1. Our favorite program runs in 20 seconds on computer A, which has a 2.5 GHz clock. We are
Solve following problems with step-by-step explanations. 1. Our favorite program runs in 20 seconds on computer A, which has a 2.5 GHz clock. We are trying to help a computer designer build a computer, B, which will run this program in 10 seconds. The designer has determined that a substantial increase in the clock rate is possible, but this increase will affect the rest of the CPU design, causing computer B to require 1.2 times as many clock cycles as computer A for this program. What clock rate should we tell the designer to target? 2. Suppose we have two implementations of the same instruction set architecture. Computer A has a clock cycle time of 300 ps and a CPI of 2.0 for some program, and computer B has a clock cycle time of 500 ps and a CPI of 1.5 for the same program. Which computer is faster for this program and by how much? 3. A compiler designer is trying to decide between two code sequences for a particular computer. The hardware designers have supplied the following facts: CPI for each instruction class ABC CPI 231 For a particular high-level language statement, the compiler writer is considering two code sequences that require the following instruction counts: Code sequence CPI for each instruction class Which code sequence executes the most instructions? Which will be faster? What is the CPI for each sequence
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
