All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2024

Regarding code optimization (peephole optimization), choose the correct sequence
A. Algebraic Simplification
B. Use of machine idioms
C. Redundant-instruction elimination
D. Flow of control optimization
E. Improved target code
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. C, D, A, B, E

Explanation

The peephole-optimisation transformations are usually listed as redundant-instruction elimination, flow-of-control optimisation, algebraic simplification and use of machine idioms, which together give improved target code: C, D, A, B, E.

More Theory of Computation and Compilers questions