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

Discussion

The optimisation level selected by a compiler flag typically controls

  • A.the number of errors the compiler is willing to report
  • B.which transformations run and how much compilation time is spent
  • C.whether the program will be correct at all when it comes to be executed
  • D.the source language that the compiler will accept

Answer: B

Higher levels apply more and costlier analyses. Correctness is not negotiable at any level, though a bug in an optimisation may of course surface only at the higher settings. That is why a program failing only when optimised deserves careful examination.

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

Post your comment

Please log in or register to post a comment.