Choose the correct description of Peephole optimization.
- A. The use of regular expressions by a lexical analyzer to define and recognize valid tokens.
- B. The part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.
- C. A technique that compiles code into machine instructions at runtime rather than before execution.
- D. A code optimization technique that examines a small set of adjacent instructions to replace them with a more efficient sequence. ✓
Correct answer
D. A code optimization technique that examines a small set of adjacent instructions to replace them with a more efficient sequence.
Explanation
Peephole optimization refers to a code optimization technique that examines a small set of adjacent instructions to replace them with a more efficient sequence.