Function Call Frames

Back to Stack Memory

Each function call pushes a frame onto the stack containing local variables, parameters, the return address, and saved registers. When the function returns, its frame is popped and the memory is reclaimed automatically.

memory-models stack call-frames