Protecting values across a helper call

An x86-64 Linux caller using the System V AMD64 convention holds a needed counter value of 19 in R10 and a needed index value of 31 in RBX. It will use both values after calling helper. The helper follows the convention but may otherwise use any permitted registers. The caller already has a dedicated 8-byte local stack slot in its allocated frame and correct call-site alignment.


Which actions correctly protect the values they address? Select all that apply. Treat each proposed action separately, without assuming any other register save.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Assembler with C Questions: