ITPEC FE Morning October 2019 Question 20

Source exam: ITPEC FE Morning October 2019Topic: Computer Systems & Hardware

ITPEC FE Morning October 2019 — Question 20 of 80

Compiler Optimization — main purpose is to reduce program execution time.

Compiler optimization transforms intermediate code to produce faster or smaller machine code.

Techniques include:
- Dead code elimination

- Loop unrolling

- Constant folding

- Register allocation

Why not others:
- (a) Improve maintainability — optimization makes generated code harder to read, not easier

- (b) Make debugging easier — optimized code is harder to debug (variables may be eliminated)

- (d) Reduce time to generate object codes — optimization increases compilation time

Key rule: Compiler optimization = faster execution, not faster compilation.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.