Theory of Computation and Compilers - Code Generation And Optimization

3. Peep-hole optimization is a form of

  • Option : C
  • Explanation :
    Redundant instructions may be discarded during the final stage of compilation by using a simple optimizing technique called peephole optimization. It is a kind of optimization performed over a very small set of instructions in a segment of generated code. The set is called a "peephole" or a "window". It works by recognizing sets of instructions that can be replaced by shorter or faster sets of instructions and it uses some common techniques: Constant folding. So option (C) is correct
Cancel reply
Cancel reply