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?
- A. 1.091
- B. 1.013
- C. 1.105
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- How many distinct finite non-zero IEEE 754 single-precision numbers x satisfy 1 ≤ x < 4?
- An 8-bit ALU computes 0x50 − 0xB0 by adding 0x50 to the two's complement of 0xB0. What are the result and the signed-overflow flag V?
- A processor has a 64-entry fully associative TLB, 4 KB pages, and a data cache of 512 KB. A program sweeps through an array of 1 MB…
- A 32 KB cache with 64-byte blocks and 36-bit physical addresses is 4-way set-associative. If the associativity is doubled (8-way) while…
- A stack machine evaluates the sum of 16 distinct variables arranged as a perfectly balanced binary tree of additions (addition is…
- A program has three disjoint parts: 20% not improvable, 30% sped up 5× by a vector unit, and 50% sped up 2× by a faster memory. What is…