Stack Frames
Runtime call stack management for function execution.
Why this exists
Stack frames enable proper function call nesting and error traceback.
How it works
Each function call creates a stack frame with location information for debugging.
Examples
When a function is called:
- Create new stack frame
- Push to call stack
- Execute function
- Pop frame on return
Common mistakes
- Not understanding stack overflow limits
- Assuming stack frames persist after return