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

Discussion

Callee saved registers are useful for values that

  • A.are used only between two consecutive instructions
  • B.hold the arguments passed to the procedure
  • C.will be destroyed by every call the procedure makes
  • D.are live across many calls within a procedure

Answer: D

Correct answer: are live across many calls within a procedure

A callee saved register survives a call, since whoever uses it must preserve it, so it suits a value needed before and after several calls - saved once on entry and restored once on exit. A value used only between two calls belongs in a caller saved register instead, saved only where it is actually at risk.

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

Post your comment

Please log in or register to post a comment.