Re: Heap pointers
1 Nov 2005 00:23:14 -0500

          From comp.compilers

Related articles
Heap pointers (shrey) (2005-10-29)
Re: Heap pointers (Gene) (2005-11-01)
Re: Heap pointers (2005-11-01)
Re: Heap pointers (Hans-Peter Diettrich) (2005-11-01)
Re: Heap pointers (Dmitry A. Kazakov) (2005-11-01)
Re: Heap pointers (Robert A Duff) (2005-11-01)
| List of all articles for this month |

Newsgroups: comp.compilers
Date: 1 Nov 2005 00:23:14 -0500
References: 05-10-204
Keywords: storage, GC
Posted-Date: 01 Nov 2005 00:23:14 EST

> [On Unix systems with a traditional storage layout, the symbol end or
> _end marks the end of static data and any pointer that is greater than
> end and less than the stack pointer (the address of a stack local is
> close enough) is in the heap. That hack is, to put it mildly, not
> very portable. There's generally something like that you can do, but
> it's quite specific to each system. -John]

Something similar to this is pretty standard with Prolog
implementations (usually these have a local stack and a heap which is
organized somewhat as a stack). You should be able to find more
details by searching for WAM (Warren's Abstract Machine, which despite
the name, has been used to generate machine code, for example,


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.