On 8/17/20 6:32 PM, Norman Wilson wrote:
It's more than 15 years since I last looked at
any
of this stuff, but I vaguely remember that lcc has
its own interesting (but ISO/POSIX-compatible)
memory-allocation setup. It allows several nested
contexts' worth of allocation, freeing an inner
context when there's no longer any need for it.
For example, once the compiler has finished with
a function and has no further need for its local
symbols, it frees the associated memory.
Arenas.
http://drhanson.s3.amazonaws.com/storage/documents/fastalloc.pdf
I'm pretty sure this is the literate programming variant Fraser and
Hanson used for the book:
https://www.cs.tufts.edu/~nr/pubs/lpsimp.pdf
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet(a)case.edu
http://tiswww.cwru.edu/~chet/