Definition
Stack
The stack is a LIFO memory region for function calls, local variables, and return addresses. Grows downward — pushing moves the stack pointer to lower addresses, popping moves it to higher addresses.
The stack pointer (
sp) always refers to the top of the current stack frame.