COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

OVERVIEW OF COMPILERS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Peep-hole optimization is a form of
A
loop optimization
B
local optimization
C
constant folding
D
data flow analysis
Explanation: 

Detailed explanation-1: -Peephole optimization is a technique for locally improving the target code which is done by examining a sliding window of target instructions and replacing the instruction sequences within the peephole by shorter or faster sequences wherever possible. Constant folding is a peephole optimization.

Detailed explanation-2: -Peephole optimization is a efficient and easy optimization technique used by compilers sometime called window or peephole is set of code that replace one sequence of instructions by another equivalent set of instructions, but shorter, faster.

Detailed explanation-3: -Which of the following comment about peep-hole optimization is true? It is applied in symbol table to optimize the memory requirements.

There is 1 question to complete.