Which of the following statements about peephole optimization is False?
- It is applied to a small part of the code
- It can be used to optimize intermediate code
- To get the best out of this, it has to be applied repeatedly
- 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.