stack frame

The block of memory for one function call on the call stack, holding that call's local variables and return point.

In more detail

A frame is created when a function is called and discarded when it returns. Recursive functions create one frame per level, which is why their space cost equals their depth. A stack trace lists the frames that were active when an error happened, and a debugger lets you move up and down between them.

Related terms

Taught in

References