Call Stack - Run-time Stack

Card Puncher Data Processing

About

The primary purpose of a call stack is to store the return addresses of each active function (subroutine). When a function (subroutine) is called, the location (address) of the instruction at which the calling routine can later resume is stored in the call stack.

More generally, a call stack is a stack data structure that stores information about the active subroutines (function) of a computer program.

Same as:

Call stack is also known as :

  • execution stack,
  • program stack,
  • control stack,
  • run-time stack,
  • or machine stack,

and is often shortened to just the stack.

The process is as follow:

  • The caller pushes the return address onto the stack (winding)
  • The caller calls the subroutine
  • The subroutine, when it finishes, pulls and remove the return address off the call stack (unwinding)
  • The subroutine call the return address.

If the pushing consumes all of the space allocated for the call stack, an error called a wiki/stack overflow occurs, generally causing the program to crash.

There is usually exactly one call stack associated with a process

Management

Manipulation

Documentation / Reference





Discover More
Model Funny
(Function | Operator | Map | Mapping | Transformation | Method | Rule | Task | Subroutine)

Section computable function. A function is a callable unit that may be called: a procedure, a subrontine a routine, a method (belong to an objectmacrocomputablalgorithreusable blocargumentdevelopment...
Bash Liste Des Attaques Ovh
Bash - Call Stack

in Bash
Postgres Elephant
How to get the schema of the function actually executing ?

With postgres, it's possible to get execution information by obtaining the execution stack . In the below function, we: * retrieve the stack as a string * extract the first function name via...
Binary Section
OS - Object File

An object file is an specific operating system format that packages an object code with related metadata to create: executable files (native image) or libraries (shared or static) There is several...
Process States
OS - Process (Main Thread) / Program

OS A process is the first thread started (called the main thread). It's the only thread that is authorized to start a new threads. A process is a unit of resources, while a thread is a unit of: scheduling...
Card Puncher Data Processing
Program Data Type - Stack

for the CPU. Also called the procedure stack. A stack is stored in a stack segment (SS) A program or operating system/executive can set up many stacks. For example, in multitasking systems,...
Card Puncher Data Processing
Python - Call Stack

in Python. See package named Pyinstrument. Pyinstrument is a Python statistical profiler that records the whole call stack once each millisecond, so programmers...



Share this page:
Follow us:
Task Runner