GATE Computer ScienceVery hardGATE CS (PYQ pattern)
On a 5-stage pipeline with forwarding, 30% of instructions are loads. Half of them are followed immediately by a dependent instruction costing one stall. A compiler reordering pass removes 60% of these stalls but increases the dynamic instruction count by 4%. If cycle time is unchanged, by what percentage does execution time change (negative means faster)?
- A. -4.1%
- B. -5.4%
- C. -7.8%
- D. -0.1%
Correct answer: A. -4.1%
Before: CPI = 1.15. After: stalls 0.15·0.4 = 0.06 → CPI 1.06, instructions ×1.04. Time ratio = 1.06·1.04/1.15 = 0.9586, i.e. −4.1% (not the −7.8% you get by forgetting the longer program).
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- After a section of a program was made 10 times faster, measurements on the improved program show that the improved section accounts for…
- A fully associative cache of 3 lines (block = one word) sees the block reference string [2, 4, 4, 0, 4, 5, 5, 2, 0, 2, 2, 2, 3, 5, 2, 1]…
- A 16-bit instruction has 5-bit address fields. Two-address instructions use a 6-bit opcode; further opcodes are obtained by expanding into…
- The back-edge branch of an inner loop executes the outcome pattern T T T N (three taken, one exit), repeated for 6 consecutive outer…
- A memory system has access time 40 ns and cycle time 60 ns per module. If the addresses are low-order interleaved over 4 such modules and…
- 90% of a program parallelises perfectly, but coordinating p processors adds an overhead of 0.005·p of the single-processor run time, so…