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

Discussion

A compiler that generates intermediate code for a construct it cannot optimise

  • A.still produces correct if slower target code for it
  • B.must reject the program as unable to be compiled
  • C.generates no code at all for that construct
  • D.converts the construct into a procedure call instead

Answer: A

Optimisation is always optional. Correct translation is the requirement, and an unoptimised construct simply runs more slowly than it might otherwise have done. Correctness is never negotiable in the way performance is.

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

Post your comment

Please log in or register to post a comment.