On Sat, Aug 15, 2020 at 5:52 PM Dibyendu Majumdar <mobile(a)majumdar.org.uk>
wrote:
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.