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

Discussion

Caller saved registers are those that

  • A.the operating system reserves for its own use
  • B.hold the arguments that are passed to the called procedure
  • C.the caller must preserve if it needs them across a call
  • D.the callee must save and restore before returning

Answer: C

The convention divides the register set so that neither side saves more than necessary. A value not live across the call costs nothing in a caller saved register. The split is fixed by the platform and cannot be chosen by the compiler.

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

Post your comment

Please log in or register to post a comment.