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

Explanation:

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 : http://www.cse.iitm.ac.in/~krishna/cs3300/pm-lecture3.pdf

Practice unlimited  Gate CSE Questions

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

GATE, ISRO, BARC, UGC-NET, NIELIT
Online Test Series available.

Leave a Reply