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

Discussion

A code generator emitting assembly rather than machine code gains

  • A.output that is readable and can be assembled separately
  • B.faster compilation because assembly is smaller
  • C.the ability to skip the register allocation stage entirely
  • D.protection against errors in the generated code

Answer: A

Readability greatly eases development and debugging of the compiler itself. The cost is an extra assembly step, which matters mainly for compilation speed. Most production compilers still take that cost for the sake of maintainability.

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

Post your comment

Please log in or register to post a comment.