CSC448: Code Generation: Run-Time Environment V [58/133] Previous pageContentsNext page

What if recursive procedure calls are permitted?

A stack allows fast allocation and deallocation of activation records.

The position of local variables is not known at compile-time.

Generated code expects to find local variables at a fixed offset from the current activation record (in a C-like language).

On x86:

Previous pageContentsNext page