8,820 views
6 votes
6 votes

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

5 Answers

7 votes
7 votes

Answer : D

 Peephole optimization 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 recognising sets of instructions that can be replaced by shorter or faster sets of instructions.

edited by
6 votes
6 votes

Answer is D).

Peephole optimization is kind of optimization performed over a very small set of instructions in a segment of generated code.It is used to optimize code like removing redundant instructions, replacing slow  instructions by faster instructions, delete useless operations . 

Refer ---> https://en.wikipedia.org/wiki/Peephole_optimization

1 votes
1 votes
All the option are correct . you can search on google . guys those who have not marked option a can believe me and search on google . ever option is correct .
Its applied on non contiguous portion of code .
It is an optimization techniques can find in any book and is applied after intermidate code generation and the last option is also true . and the first option is already proved right by ll
reshown by
Answer:

Related questions

3 votes
3 votes
3 answers
1
Anuanu asked Jun 15, 2016
10,110 views
In compiler terminology reduction in strength meansReplacing run time computation by compile time computationRemoving loop invariant computationRemoving common subexpress...
7 votes
7 votes
3 answers
2
go_editor asked Jun 24, 2016
6,180 views
A symbol table of length $152$ is processing $25$ entries at any instant. What is occupation density?$0.164$$127$$8.06$$6.08$
7 votes
7 votes
3 answers
3
Isha Gupta asked Jun 19, 2016
2,966 views
Which variable does not drive a terminal string in grammar?$S \rightarrow AB$$A \rightarrow a$$B \rightarrow b$$B \rightarrow C$ABCS
3 votes
3 votes
2 answers
4
go_editor asked Jun 24, 2016
3,727 views
Logic family popular for low power dissipationCMOSECLTTLDTL