Concept Flow - Stack vs heap in embedded context
Start Program
Initialize Stack
Function Calls & Local Variables
Push/Pop on Stack
Initialize Heap
Dynamic Memory Allocation
Allocate/Free on Heap
Program Ends
Program starts with stack setup for function calls and local variables, and heap setup for dynamic memory; stack grows/shrinks with calls, heap allocates/frees memory dynamically.