Question 71
Which of the following are standard compiler optimizations applied to loops?
Code motion, strength reduction, and loop unrolling are all standard loop optimizations, so more than one listed technique is correct.
Which of the following are standard compiler optimizations applied to loops?
Code motion, strength reduction, and loop unrolling are all standard loop optimizations, so more than one listed technique is correct.
Which of the following are compiler optimization techniques that can reduce execution cost or improve generated code?
Strength reduction replaces an expensive operation with a cheaper equivalent, constant folding evaluates constants at compile time, and loop fusion can reduce loop overhead and improve locality.
Which of the following are valid compiler optimization techniques?
Constant folding evaluates constant expressions, constant propagation substitutes known constants, and loop fusion combines compatible loops; all three are recognized optimizations.
Which of the following are recognized compiler optimization techniques?
Constant propagation substitutes known constants, constant folding evaluates constant expressions, and code hoisting moves suitable computations to a common earlier point; all are optimization techniques.
Which of the following are loop-oriented optimization or transformation techniques?
Loop unrolling, loop fusion, and loop-invariant code motion are all standard loop transformations or optimizations.