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

Dan Cross crossd at gmail.com
Tue Aug 18 02:13:07 AEST 2020

On Sat, Aug 15, 2020 at 5:52 PM Dibyendu Majumdar <mobile at majumdar.org.uk>

> I have a project to revive the C compiler from V7/V10.
> I wanted to check if anyone here knows about the memory management in
> the compiler (c0 only for now). I am trying to migrate the memory
> management to malloc/free but I am struggling to understand exactly
> how memory is being managed.

I'll confess I haven't looked _that_ closely, but I rather imagine that the
V10 compiler is a descendant of PCC rather than Dennis's V6/V7 PDP-11
compiler. V10 only targets the VAX, and from what I can tell, the two
compilers in use there are LCC and PCC.

>From my light skimming of V10 sources, it appears that the various
components of the default C compiler (that is, not LCC) either use
malloc/free or call `sbrk` directly.

        - Dan C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200817/85da16b6/attachment.htm>

More information about the TUHS mailing list