Call stack
Stack data structure that stores information about the active subroutines of a computer program
In computer science, a call stack is a stack data structure that stores information about the active subroutines and inline blocks of a computer program. This type of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack, and is often shortened to simply the "stack".
Nº Q759899 ★★
Uncommon · Places
Call stack
Stack data structure that stores information about the active subroutines of a computer program
In computer science, a call stack is a stack data structure that stores information about the active subroutines and inline blocks of a computer program. This type of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack, and is often shortened to simply the "stack".
From Wikipedia
In computer science, a call stack is a stack data structure that stores information about the active subroutines and inline blocks of a computer program. This type of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack, and is often shortened to simply the "stack". Although maintenance of the call stack is important for the proper functioning of most software, the details are normally hidden and automatic in high-level programming languages. Many computer instruction sets provide special instructions for manipulating stacks. A call stack is used for several related purposes, but the main reason for having one is to keep track of the point to which each active subroutine should return control when it finishes executing. An active subroutine is one that has been called, but is yet to complete execution, after which control should be handed back to the point of call. Such activations of subroutines may be nested to any level (recursive as a special case), hence the stack structure. For example, if a subroutine DrawSquare calls a subroutine DrawLine from four different places, DrawLine must know where to return when its execution completes. To accomplish this, the address following the instruction that jumps to DrawLine, the return address, is pushed onto the top of the call stack as part of each call.
Text: Wikipédia, CC BY-SA 4.0. · Image: R. S. Shaw (Public domain) ·
Related cards
-
Stack (abstract data type)
Abstract data type
Nº Q177929 ★★★
Not listed
-
H
Heap memory
Pool of memory that is dynamically allocated to satisfy memory requests
Nº Q3515915 ★
Not listed
-
Disk pack
Removable assembly of disk platters used in early hard disk drives
Nº Q5282316 ★★
Not listed
-
R
Record (computer science)
Composite data type; information block containing specific, identified fields
Nº Q2470517 ★
Not listed
-
T
The Pile (dataset)
Training dataset for large language models
Nº Q119241146 ★
Not listed
-
Data architecture
Framework for organizing and defining the interrelationships of data in support of an organization's missions, functions, goals, objectives, and strategies
Nº Q638422 ★
Not listed