CSC448: Code Generation: Run-Time Environment VII [7/14] Previous pageContentsNext page

Exercise: extend the language with pointers.

In a language with pointers, one invocation of a function may have a pointer into the activation record of another invocation of a function. This can lead to dangling pointers.

Data objects with a lifetime that does not correspond to the lifetime of an activation record are stored in a a separate area of memory called the heap.

Previous pageContentsNext page