All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Call stack, stack frame?

Also known as: call stack · stack frame

Definition 3.3 University Computer Science — Year 1 · Chapter 3 — Functions and the Call Stack

The call stack is a region of memory used last in, first out: each call of a function pushes a stack frame (or activation record) holding what that call needs, and the return pops it. A frame holds the call’s parameters and local variables that do not fit in registers, the registers it must save for its caller, and the return address. Only the frames of calls that have started and not yet returned are on the stack, the most recent on top.

Read in context →