Related articles |
---|
Heap pointers shreyas76@gmail.com (shrey) (2005-10-29) |
Re: Heap pointers gene.ressler@gmail.com (Gene) (2005-11-01) |
Re: Heap pointers peter.ludemann@gmail.com (2005-11-01) |
Re: Heap pointers DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2005-11-01) |
Re: Heap pointers mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2005-11-01) |
Re: Heap pointers bobduff@shell01.TheWorld.com (Robert A Duff) (2005-11-01) |
From: | peter.ludemann@gmail.com |
Newsgroups: | comp.compilers |
Date: | 1 Nov 2005 00:23:14 -0500 |
Organization: | http://groups.google.com |
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,
Aquarius: http://www2.info.ucl.ac.be/people/PVR/aquarius.html)
e.g.:
news://comp.lang.prolog
http://www.cs.kuleuven.ac.be/~remko/prolog/faq/
http://www.vanx.org/archive/wam/wam.html
Return to the
comp.compilers page.
Search the
comp.compilers archives again.