From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4627 invoked from network); 16 Aug 2020 15:21:14 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 16 Aug 2020 15:21:14 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 855389B682; Mon, 17 Aug 2020 01:21:12 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 628619B5F8; Mon, 17 Aug 2020 01:20:49 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 8EA889B5F8; Mon, 17 Aug 2020 01:20:47 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id 590C19B5EC for ; Mon, 17 Aug 2020 01:20:46 +1000 (AEST) X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 07GFKhix028985 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 16 Aug 2020 09:20:44 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 07GFKg9k028970; Sun, 16 Aug 2020 09:20:42 -0600 From: arnold@skeeve.com Message-Id: <202008161520.07GFKg9k028970@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Sun, 16 Aug 2020 09:20:42 -0600 To: tuhs@tuhs.org, mobile@majumdar.org.uk References: In-Reply-To: User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [TUHS] Memory management in Dennis Ritchie's C Compiler X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Dibyendu Majumdar wrote: > Hi, > > 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. > > Thanks and Regards > Dibyendu There already is a project that revived PCC, probably starting with the one in 4BSD. http://pcc.ludd.ltu.se/ I have a git mirror, just to make things easier for access through firewalls: https://github.com/arnoldrobbins/pcc-revived Starting from the V10 compiler would be interesting. It was not available when the above project was started. HTH, Arnold