GATE Computer ScienceEasyGATE CS (PYQ pattern)

An instruction mix is: ALU 45% (CPI 1), loads 25% (CPI 2), stores 10% (CPI 2), branches 20% (CPI 3). A compiler optimisation deletes one third of all loads entirely (the instructions disappear). What is the resulting speed-up in execution time, at the same clock?

  1. A. 1.091
  2. B. 1.013
  3. C. 1.105
  4. D. 1.050

Correct answer: C. 1.105

Original cycles per instruction = 1.75. Removing 1/3 of loads removes (0.25/3) instructions of 2 cycles each: new cycles = 1.5833 per original instruction. Speed-up = 1.75/1.5833 = 1.105. The new CPI per remaining instruction (1.727) is almost unchanged, which would mislead a CPI-only comparison.

More Computer Organization and Architecture questions

Exams that ask this topic