Question:

Which technique replaces a sequence of instructions with a faster one?

Show Hint

Peephole Optimization performs:
• Redundant instruction elimination
• Strength reduction
• Constant folding
• Flow-of-control optimization
Updated On: Jun 25, 2026
  • Syntax Analysis
  • Code Expansion
  • Peephole Optimization
  • Parsing
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Concept: Optimization techniques improve program efficiency without changing program behavior. Peephole optimization examines a small window of consecutive instructions and replaces inefficient instruction sequences with more efficient ones.

Step 1:
Understand peephole optimization.
The compiler looks through a small "peephole" of instructions. It identifies redundant or inefficient code patterns.

Step 2:
Apply replacement.
Example: \[ MOV\;R1,R1 \] does nothing and can be removed. Similarly, multiple instructions may be replaced with a single faster instruction.

Step 3:
Determine the answer.
Therefore the technique that replaces instruction sequences with faster ones is \[ \boxed{\text{Peephole Optimization}} \]
Was this answer helpful?
0
0