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
Top TS PGECET Computer Science & Information Technology Questions