The Stack
-
The Stack is an area of memory devoted to the current program.
-
$sp
is a special register used to contain
the address of the beginning of the stack being used by this procedure.
-
The Stack grows from higher addresses to lower addresses.
-
decrement by 4 (size of word) and use
sw
for each push
-
use
lw
and increment by 4 (size of word) for each pop
-
The Stack also contains local variables.
-
Activation record is a block of the Stack used by
a specific instance (activation) of a procedure.
-
Why isn't it a "procedure record"?
Alyce Brady, Kalamazoo College