Intermediate Assembly Language
Q43 / 100

What is the difference between caller-saved and callee-saved registers?

Correct! Well done.

Incorrect.

The correct answer is B) Caller-saved registers must be saved by the caller before a call (may be modified by callee); callee-saved must be saved and restored by the callee

B

Correct Answer

Caller-saved registers must be saved by the caller before a call (may be modified by callee); callee-saved must be saved and restored by the callee

Explanation

In System V AMD64: RAX, RCX, RDX, RSI, RDI, R8-R11 are caller-saved. RBX, RBP, R12-R15 are callee-saved (the called function must restore them).

Progress
43/100