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

Discussion

Generating intermediate code before optimisation rather than after is

  • A.a matter of preference with no practical consequence
  • B.impossible, because optimisation must precede generation
  • C.done only in those compilers that perform no optimisation at all
  • D.necessary, since optimisation operates on the intermediate form

Answer: D

There is nothing to optimise until the representation exists. Machine independent optimisation sits between generation and code generation for exactly this reason. Each phase operates on the representation best suited to what it does.

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

Post your comment

Please log in or register to post a comment.