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, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7266 invoked from network); 3 Feb 2023 00:43:54 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 3 Feb 2023 00:43:54 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 98EAC41226; Fri, 3 Feb 2023 10:43:46 +1000 (AEST) Received: from lechuck.jsg.id.au (jsg.id.au [193.114.144.202]) by minnie.tuhs.org (Postfix) with ESMTPS id 8EB9341224 for ; Fri, 3 Feb 2023 10:43:31 +1000 (AEST) Received: from largo.jsg.id.au (largo.jsg.id.au [192.168.1.43]) by lechuck.jsg.id.au (OpenSMTPD) with ESMTPS id 9ec3f68b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 3 Feb 2023 11:43:27 +1100 (AEDT) Received: from localhost (largo.jsg.id.au [local]) by largo.jsg.id.au (OpenSMTPD) with ESMTPA id 8ce6760f; Fri, 3 Feb 2023 11:43:27 +1100 (AEDT) Date: Fri, 3 Feb 2023 11:43:26 +1100 From: Jonathan Gray To: Noel Chiappa Message-ID: References: <20230202190232.C79D118C073@mercury.lcs.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Message-ID-Hash: AFXAMQ5YZK6JY4FUA62OSTOQ73LVBOP7 X-Message-ID-Hash: AFXAMQ5YZK6JY4FUA62OSTOQ73LVBOP7 X-MailFrom: jsg@jsg.id.au X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Typesetter C compiler List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Fri, Feb 03, 2023 at 08:57:14AM +1100, Jonathan Gray wrote: > On Thu, Feb 02, 2023 at 02:02:32PM -0500, Noel Chiappa wrote: > > > > There was recent discussion here about the Typesetter C compiler; I don't > > have the energy to look through the tons of opinion posts about recent > > programming styles, to find the posts about actual Unix history which related > > to that compiler, but I seem to recall that there was interest in locating > > the source for it? I had strted to look, but then got distracted by some > > other high-pri stuff; here are a few notes that I had accumulated to reply - > > I hope they aren't too out-of-date by now. > > > > I have a copy of it, from the dump of the CSR machine (I can't make the whole > > dump public, sorry; it has personal material from a bunch of people mixed in). > > discussed in > https://minnie.tuhs.org/pipermail/tuhs/2023-January/027393.html > > The best case would be a copy of the tape that was licensed and > distributed externally. With nroff/troff/ar/stdio. > > > > > I was pretty sure the C compiler from Mini-Unix, here: > > > > https://minnie.tuhs.org/cgi-bin/utree.pl?file=Mini-Unix/usr/source/c > > > > was from the right timeframe to be the Typesetter C, but a quick check of > > c0.h, shows that it's not; that one seems to be more like the V6 one. (Ditto > > for LSX.) > > > > The PWB1 one: > > > > https://minnie.tuhs.org/cgi-bin/utree.pl?file=PWB1/sys/c/c > > > > seems, from a very quick look at c0.h (using that nice side-by-side compare > > feature on the TUHS archive - thanks, Warren!), to be somewhat close to the > > Typesetter C. It would be interesting to compare that one to the CSR one > > (which definitely is) to be sure. > > Yes, PWB/UNIX 1.0, AUSAM where READ_ME includes: > "the 'C' compiler contained herein is > not merely a local abheration of > 'C' but is in fact a version from bell > labs via indirect means > the lanuage accepted by this 'C' > would is identical to that accepted by the 'C' > compiler distributed with PWB/UNIX > also corresponds to syntax given in > Kernigan and Plaugher's book on 'C'" > > the Interdata 7/32 tree in modified form > > and binaries in Tim_Shoppa_v6/unix_v6.rl02.gz as you described in > http://mercury.lcs.mit.edu/~jnc/tech/ImprovingV6.html > > Compared to v6 the phototypesetter compiler adds: > unsigned union typedef. > > The v7 compiler included enums and structure assignment > described in "Recent Changes to C" November 15, 1978 > https://www.bell-labs.com/usr/dmr/www/cchanges.pdf As you mentioned in https://minnie.tuhs.org/pipermail/tuhs/2014-October/006834.html there is also a (Miller modified?) "New C Compiler Features" document https://minnie.tuhs.org/cgi-bin/utree.pl?file=Interdata732/usr/doc/cdoc/newstuff.nr a different, earlier? version of this is "C Changes" https://minnie.tuhs.org/cgi-bin/utree.pl?file=AUSAM/source/c_compiler/newstuff.doc another version of "C Changes" in https://minnie.tuhs.org/cgi-bin/utree.pl?file=32V/usr/doc/ctour/newstuff the C Reference Manual, May 1, 1977 in Documents for the PWB/UNIX Time-Sharing System, Edition 1.0 https://bitsavers.org/pdf/att/unix/PWB_UNIX/Documents_for_the_PWB_UNIX_Time-Sharing_System_Edition_1.0_197710.pdf (44M) notes: "Warning: The data type name short is not recognized by the version of the C compiler that is distributed as part of PWB/UNIX Edition 1.0." but otherwise seems quite close to the C Reference Manual text in tuhs/Documentation/Books/Draft-KandR-C-Book.pdf