Stack frame
Return address of caller
Function arguments
Storage for local variables -> We don’t store space for this at compile time
Stack memory | Purpose |
---|---|
Text | instructions |
Data | global vars |
GROWTH | GROWTH |
GROWTH | GROWTH |
Stack | function invocations |
Return address of caller
Function arguments
Storage for local variables -> We don’t store space for this at compile time
Stack memory | Purpose |
---|---|
Text | instructions |
Data | global vars |
GROWTH | GROWTH |
GROWTH | GROWTH |
Stack | function invocations |