andersch.dev

<2024-10-26 Sat>

Call Stack

A call stack (or execution stack) is a stack that keeps track of the active function calls in a program. Each time a function is called, a new stack frame is pushed on the call stack with the function's parameters, local variables, and return address. The most recently called function is the first to be completed and removed from the stack (LIFO).