4/17/2007
Modern Programming Languages - Chapter 14
12
m.push(3)
;
The program calls
m.push(3)
, which
returns 5: the address of the
first of the 3 words
allocated for an activation
record.
Memory
management uses an extra
word to record the previous
value of
top
.
A Stack Illustration