Question: A hardware designer is trying to choose between two code sequences running on the same computer. The designer identified three classes of instructions A, B
A hardware designer is trying to choose between two code sequences running on the same computer. The designer identified three classes of instructions A, B and C. The CPI for A class is 1. CPI for Bis 2 and for C is 3. The two code sequences require the following instruction counts (IC) for each class: IC for each instruction class Code Sequence A B Seq 1 4 1 1 Seg 2 2 1 2 Choose the best answer: Seg1 is faster, since it's average CPi is 20 and takes 5 cycles vs 6 cycles for seg2 Segi is faster, since it's average CPL is 1.5 and takes 9 cycles vs 10 cycles for seq2 Segi is faster, since it's average CPI is 1.5 and takes 5 cycles vs 6 cycles for seg2 Seq2 is faster, since it's average CPi is 3.0 and takes 5 cycles vs 6 cycles for seq1 Seg2 is faster, since it's average CPI is 3.0 and takes 10 cycles vs 9 cycles for segi Seq2 is faster, since it's average CPI is 2.0 and takes 5 cycles vs 6 cycles for seq1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
