[TUHS] Memory management in Dennis Ritchie's C Compiler

Chet Ramey chet.ramey at case.edu
Tue Aug 18 09:12:45 AEST 2020

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.



I'm pretty sure this is the literate programming variant Fraser and
Hanson used for the book:


``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet at case.edu    http://tiswww.cwru.edu/~chet/

More information about the TUHS mailing list