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 812 invoked from network); 25 Apr 2021 12:50:11 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 25 Apr 2021 12:50:11 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 33A3C9C0AE; Sun, 25 Apr 2021 22:50:08 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id A531F9BD71; Sun, 25 Apr 2021 22:49:44 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 7DB039BD71; Sun, 25 Apr 2021 22:49:41 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id 847E49BD6E for ; Sun, 25 Apr 2021 22:49:38 +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 13PCnaTA031742 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 25 Apr 2021 06:49:37 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 13PCnaFV031741; Sun, 25 Apr 2021 06:49:36 -0600 From: arnold@skeeve.com Message-Id: <202104251249.13PCnaFV031741@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Sun, 25 Apr 2021 06:49:36 -0600 To: tuhs@minnie.tuhs.org, pnr@planet.nl References: <15D66A4F-D935-4313-93C8-CBB66039E0BD@planet.nl> In-Reply-To: <15D66A4F-D935-4313-93C8-CBB66039E0BD@planet.nl> User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [TUHS] pcc in 8th edition 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" Not an answer to your questions, but you may want to take a look at the PCC Revived project. It lives in CVS, but I have a git mirror at git://github.com/arnoldrobbins/pcc-revived HTH, Arnold Paul Ruizendaal wrote: > For clarity and ease of reference: > > - The “Tour of paper” is for instance here: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.48.3512 > > - A machine description for the VAX that matches with that paper is for instance in the SysIII source: https://www.tuhs.org/cgi-bin/utree.pl?file=SysIII/usr/src/cmd/cc/vax/pcc/table.c > > - The new style description in 8th edition is here: https://www.tuhs.org/cgi-bin/utree.pl?file=V8/usr/src/cmd/ccom/vax/stin > > - The program that translates the “stin” file to a “table.c” file is here: https://www.tuhs.org/cgi-bin/utree.pl?file=V8/usr/src/cmd/ccom/common/sty.y > > > ==== > > Sometimes one thing leads to another. > > Following the recent mention of some retro-brew 68K single board systems, I decided to build a CB030 board (in progress). I figure it is a rough proxy for a 1980 VAX and would allow for some experimentation with the 32V / SysIII / 8th edition code. > > My first thought was to use the M68K compiler that is included with the Blit sources (see THUS Archive for this), as I had used that before to explore some of the Blit source. That compiler is LP32, not ILP32 - which may be a source of trouble. Just changing the SZINT parameter yielded some issues, so I started looking at the PCC source. > > This source does not have a “table.c” in the well known format as described in the “A tour of the portable C compiler” paper. Instead it uses a file “stin” which appears to be in a more compact format and is translated into a “table.c” file by a new pre-processor ("sty.y”). Then looking at the VAX compilers for 8th and 10th edition, these too use this “stin” file. > > All the other m68K compilers (based on pcc) that I found appear to derive from the V7/32V/SysIII lineage, not from the 8th edition lineage. > > A quick google did not yield much background or documentation on the STY format. > > Anybody on this list that can shed some light on the history of the STY table and on how to use it? Any surviving reports or memos that would be useful? > > Many thanks in advance > > Paul >