stack
overview
When programs are executing, a contiguous section of memory gets allocated, this section of memory is called the stack.
The stack pointer (ESP register) always points to the top of the stack. The stack pointer points to the smallest address that can be used in the stack, anything less is garbage. Here’s a diagram of the stack from an abstract perspective:
diagram
