Machine-translated by Google. Questions are authored in English.
Top

Discussion

The optimisation phase must preserve

  • A.the textual layout of the original source program
  • B.the meaning of the program while improving its performance
  • C.the exact sequence of intermediate instructions as generated
  • D.the number of registers that the program originally used

Answer: B

An optimisation that changes observable behaviour is a bug, not an improvement. Every transformation must be shown to be semantics preserving for all inputs, which is why the safe set of optimisations is more limited than it first appears.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.