Call Stack

noun

say it: “KAWL STAK” /kɔl stæk/

Where a program keeps one frame for every function call that has started but not finished, newest on top.

What is a call stack?

The call stack is where a program keeps track of the function calls that have started but not finished. Each call puts a frame on top when it starts and takes it off when it finishes, newest first, like bookmarks in a recipe book. A debugger's Call Stack panel and an error's stack trace both show it.

In a sentence

  • “When the debugger paused, the call stack showed four countdown calls waiting above the main program.”

Level: Journeyman · More Data Structures terms at this level

Updated

In other subjects