Computer Science EngineeringHard

Peephole optimization operates on

  1. A. the whole program at once
  2. B. a single basic block only
  3. C. the entire control flow graph
  4. D. a small window of consecutive instructions

Correct answer: D. a small window of consecutive instructions

It looks through a short window of target code and replaces patterns by shorter or faster equivalents.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic