Memory Management

Stack Area

English

Overview

A memory region where function-call information and the like is temporarily pushed.

Details

A memory region where local variables and return addresses are pushed for each function call, automatically freed when the function returns. Allocation and deallocation are just a push or pop at the top, making it far faster than the heap, but its size is capped, and recursion that goes too deep triggers a stack overflow.

More Programming terms