- Callee saved
Process
- Arguments are placed onto the stack from left-to-right
- Function is called with
call <location>
. This causesrip
to be pushed to the stack (return address) - Space is allocated onto the stack for local variables
- Function does work
- Stack is restored
- Returns by calling
ret N
(Returns and removes N arguments)