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

Discussion

Compilation time and quality of generated code are related in that

  • A.the two are entirely independent of one another in practice
  • B.optimisation reduces compilation time by simplifying the code
  • C.more thorough optimisation generally costs more compilation time
  • D.faster compilation always produces better target programs

Answer: C

Correct answer: more thorough optimisation generally costs more compilation time

Optimisation requires analysis, and the more thorough analyses are expensive - data flow over the whole flow graph, interprocedural work, repeated passes as one transformation exposes another.

That is precisely why compilers expose levels rather than a single setting: a developer compiling repeatedly wants speed, and a release build can afford minutes. The relationship is a trade, not an independence, and certainly not the inverse the last option suggests.

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

Post your comment

Please log in or register to post a comment.