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

Discussion

Register machines generally outperform stack machines because

  • A.stack machines require far more memory for their code
  • B.registers can hold values of any size whatsoever
  • C.operands need not be moved on and off a stack repeatedly
  • D.stack machines cannot execute conditional branches

Answer: C

Explicit registers avoid the traffic that a stack discipline forces. Stack code is more compact, which is why it remains attractive for a portable distribution format. Just in time compilers translate such code into register code before running it.

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

Post your comment

Please log in or register to post a comment.