CS 112
Lecture 14
Memory allocation using stacks
- Use of stacks for temporary memory allocation of parameters
and local variables of functions, during function calls.
- More applications of
stacks: memory allocation part I.
- How compilers treat global and local variables and function
parameters.
- How the call of a function is evaluated using a stack. How
the value returned by a function is stored on top of the system stack.
- Preliminary recommended reading for the next topic (how recursion is
implemented with stacks), after spring break: in the
recommended textbook, Ch. 6.4, 8.6.2.
Ileana Streinu