ISRO CS 2011 | Code-Optimization

Which of the following statements about peephole optimization is False?

  1. It is applied to a small part of the code
  2. It can be used to optimize intermediate code
  3. To get the best out of this, it has to be applied repeatedly
  4. It can be applied to the portion of the code that is not contiguous

Answer: D


In peephole optimization a small portion of code need not be contiguous and it is replaced by another which is expected to be better performing.
This is often applied repeatedly. So, all given options are true in this question.

Refer this link :

Practice unlimited  Gate CSE Questions

Do U have Better Solution?
Contribute your Solution in the Comment Section below.

Online Test Series available.

Leave a Reply