Stack Simulator

Explore how the call stack works — function calls, recursion, and stack overflow

Memory Layout

Educational simulation
Code / Text Segment
Global / Static Data
Heap ↑ grows up
Stack ↓ grows down

Display

Top
Current Function
Stack Depth 0 / 15
Stack Usage 0 / 512 bytes

Call Stack Controls

Call Stack

OK
Empty call stack — call a function to begin.

Frame Details

Select a frame to inspect its contents.

Call Stack Timeline

The timeline will appear here as functions are called.

Event Log