What are general ways to manage memory?
Static memory management (naive)
For every
name
binding, we assign a fixed memory location.Use a runtime stack to keep track of the operand stack , program counter (PC) and environment of functions.
Allocate memory dynamically.