From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id 9C8C4296D4 for ; Fri, 8 Mar 2024 02:22:27 +0100 (CET) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 88CED4326A; Fri, 8 Mar 2024 11:22:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuhs.org; s=dkim; t=1709860943; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-owner:list-unsubscribe: list-subscribe:list-post; bh=nM7rU1MB6J/UlUj7Gj6pp8OeU+rml3hExgiSYBR2Wfg=; b=qmNAWIKoTlkJqDpC1f+me6eGFU6xNPViGnmsqeQT1oIOdyR6P1tiR49auYm7hdfdr3VQ4P qyIKds+64jjUO7q88zCOvGK4IAShbeZjZV9yodbh6eZ5CC8QGFDwi6Ye2KRvybtEJZ1yf1 Hhjni7PJ7bKHCSB/BVYiUntygRikm+I= Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by minnie.tuhs.org (Postfix) with ESMTPS id 859E343269 for ; Fri, 8 Mar 2024 11:22:17 +1000 (AEST) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1dc0d11d1b7so13792755ad.2 for ; Thu, 07 Mar 2024 17:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1709860937; x=1710465737; darn=tuhs.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=nM7rU1MB6J/UlUj7Gj6pp8OeU+rml3hExgiSYBR2Wfg=; b=VnKcOLED3EkgaorFL5jiMG5jat5p35MFgyWRPkOJxU8R9IYxPr1O9DPQKQXL1n/g0C E5Jm29vzIasAI7zxHhgu/XKTitHZ3GqWWSxbbCwd5gVror9ev3FORL7Yfsct8XnFcpRr nYM+eOGKO1ckbiBut67WJqS1u2NjuEIRumGcbxW5hcCXPEyEIf9FfoBQ74U8XxrlGAsW a/qLmcgHCOdGhTYjYALDNfNp7OgiCIEzsomiefY94m5FmDXFiud0cCaSNeGUDmgGxol4 yIK7dk9JWUI7yYxkNKqnqhkl9c79mncquLQj9l3eE/V3UDly9gozih1lJNbliBklyx98 jXLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709860937; x=1710465737; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nM7rU1MB6J/UlUj7Gj6pp8OeU+rml3hExgiSYBR2Wfg=; b=AETiUtC4nHEIJ40/WmcjPFF2nlwWUPiElQQ+CgSsRO++FuQWBkBojeOKTM8FFrqJ50 9FuiHDmtz/JbyQQRP7uI7fSSrMKVbkQkXiynr59v9K/WfUfODDUOJqDLQqfdhZR29ucx xXnCd0bqhPAfWvPxzQJcCj2ABXfQIe4NHEJtHcQjWSJZ/KvOqoxHNLYazpxiw2Uh0CkE rB3euziFj47FnxSfiVdCdLod6yf81oRo7L4YyYV8AYaby4hBbGH87jkh57NzrHi05agt KhI6ZQ8h3xqUdhg2KIRb2I+k0c3rsum4R7Lq7ycpSwba+vYiKy6msjRm9QCBa6XpQPGj cmCA== X-Forwarded-Encrypted: i=1; AJvYcCUFG6d04FMVWopF2DzWEbbfmgrauwvVvNJx1KGeFgGoUu8HYb3ZqnJI/VAMbgbBvJZDlP4QZ5wkI47I6ddA X-Gm-Message-State: AOJu0YwUU4YxsPKJIU/Xy2FAQUGM79TIGMwe91kt7oXG4xrodG1tF9CO /wjy9uCo2TByHveJQk8sI53OeZ44OuxWOvV6nveWdxTxqT/agujJF7coM7BXZYh1h7Xegf6Lp5g = X-Google-Smtp-Source: AGHT+IGsUwPphD9a8XzsTS7QoJQbRDftOVSSfGTEcp/Kvz9liulWpyznberOs5k5WEi39Q8hVsETWA== X-Received: by 2002:a17:902:7898:b0:1dc:adad:f54b with SMTP id q24-20020a170902789800b001dcadadf54bmr8867046pll.44.1709860936917; Thu, 07 Mar 2024 17:22:16 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id cp6-20020a170902e78600b001dd2bacf30asm6230571plb.162.2024.03.07.17.22.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2024 17:22:16 -0800 (PST) Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_AE816D24-7816-4BC2-BB83-59D1B710EE68" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Date: Thu, 7 Mar 2024 17:22:03 -0800 In-Reply-To: To: Rob Pike References: <20240307234921.GO2252@mcvoy.com> <8478FB11-64ED-43CE-90AD-6F2011282451@iitbombay.org> X-Mailer: Apple Mail (2.3774.400.31) Message-ID-Hash: J25MHPXV4V7DFU4GA53E4NVB7WXNTOXY X-Message-ID-Hash: J25MHPXV4V7DFU4GA53E4NVB7WXNTOXY X-MailFrom: bakul@iitbombay.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: History of non-Bell C compilers? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Bakul Shah via TUHS Reply-To: Bakul Shah X-Spam: Yes --Apple-Mail=_AE816D24-7816-4BC2-BB83-59D1B710EE68 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks! Yes, I love the way go and plan9 C compilers work. IMHO all new = compilers should be written like that. I detest clang & llvm, especially = when, for example, Freebsd make buildworld (from scratch) takes over an = hour because of clang+llvm times. Surely llvm author(s) could've = achieved all the flexibility llvm provide for various frontends in a = different way? [FreeBSD is also at fault. I think it can be compiled = with gcc but no other small and fast compilers like tcc] > On Mar 7, 2024, at 5:12=E2=80=AFPM, Rob Pike = wrote: >=20 > By the way, the unmatched portability of Plan 9 and Go stems from the = way Ken structured that compiler. My talk at GopherCon about the Go = assembler describes this architecture and why it worked so well. Others = feel that by being unorthodox it is clearly bogus and we are jackasses, = but such complainers only notice the difference and don't ask why the = difference is there. >=20 > -rob >=20 >=20 > On Fri, Mar 8, 2024 at 12:10=E2=80=AFPM Rob Pike > wrote: >> Yes. Ken wrote the first version for the National 32000 (maybe even = 16000?) on the Sequent. He ported to the MIPS when we started Plan 9. >>=20 >> -rob >>=20 >>=20 >> On Fri, Mar 8, 2024 at 12:08=E2=80=AFPM Bakul Shah = > wrote: >>> What is the history of Plan9's C compiler? Was it a from scratch = implementation? >>>=20 >>>> On Mar 7, 2024, at 4:57=E2=80=AFPM, Rob Pike > wrote: >>>>=20 >>>> Chris Fraser and Dave Hanson did LLC and wrote a book about it, = very clean and pedagogically valuable. >>>>=20 >>>> = https://www.amazon.com.au/Retargetable-C-Compiler-Design-Implementation/dp= /0805316701 >>>>=20 >>>> -rob >>>>=20 >>>>=20 >>>> On Fri, Mar 8, 2024 at 11:31=E2=80=AFAM Warner Losh > wrote: >>>>>=20 >>>>>=20 >>>>> On Thu, Mar 7, 2024 at 5:08=E2=80=AFPM Rich Salz = > wrote: >>>>>> I believe Snyder was an MIT Master's thesis, finished in 1975[1]. = There was a fair amount of C and compiler work at MIT LCS, perhaps JNC = can post some info. I think Snyder's compiler was used for the MIT = PC/IP[2] project; the links at BitSavers imply they are related. PC/IP = brought TCP and clients to DOS 3 machines and was commercialized as FTP = software and was one of the reasons for the creation of the MIT = license[4]. BDS C[3] was done by an MIT drop-out, Leor Zolman. I bought = my first motorcycle from him :) BDS C was used for the first = implementations of MINCE (mince is not complete emacs -- those kinds of = acronyms were popular) and Scribble, downsized clones of emacs and = Scribe, respectively. >>>>>>=20 >>>>>> [1] http://www.lcs.mit.edu/publications/specpub.php?id=3D717 >>>>>> [2] https://web.mit.edu/Saltzer/www/publications/pcip-1986.pdf >>>>>> [3] https://en.wikipedia.org/wiki/BDS_C >>>>>> [4] https://ieeexplore.ieee.org/document/9263265 >>>>>=20 >>>>> Judging from what's at the bitsavers I posted, the source for pcip = and this is the backstory to them. >>>>>=20 >>>>> Warner >>>=20 --Apple-Mail=_AE816D24-7816-4BC2-BB83-59D1B710EE68 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks!

Yes, I love the = way go and plan9 C compilers work. IMHO all new compilers should be = written like that. I detest clang & llvm, especially when, = for example, Freebsd make buildworld (from scratch) takes over an hour = because of clang+llvm times. Surely llvm author(s) could've achieved all = the flexibility llvm provide for various frontends in a different way? = [FreeBSD is also at fault. I think it can be compiled with gcc but no = other small and fast compilers like tcc]

On Mar 7, 2024, at 5:12=E2=80=AFPM, Rob Pike = <robpike@gmail.com> wrote:

By the = way, the unmatched portability of Plan 9 and Go stems from the way Ken = structured that compiler. My talk at GopherCon about the Go assembler = describes this architecture and why it worked so well. Others feel that = by being unorthodox it is clearly bogus and we are jackasses, but such = complainers only notice the difference and don't ask why the difference = is there.

-rob


On Fri, Mar = 8, 2024 at 12:10=E2=80=AFPM Rob Pike <robpike@gmail.com> = wrote:
Yes. Ken = wrote the first version for the National 32000 (maybe even 16000?) on = the Sequent. He ported to the MIPS when we started Plan 9.

-rob


On Fri, Mar = 8, 2024 at 12:08=E2=80=AFPM Bakul Shah <bakul@iitbombay.org> = wrote:
What is the history of Plan9's C = compiler? Was it a from scratch = implementation?

On Mar = 7, 2024, at 4:57=E2=80=AFPM, Rob Pike <robpike@gmail.com> wrote:

Chris Fraser and Dave Hanson did = LLC and wrote a book about it, very clean and pedagogically = valuable.


-rob


On Fri, Mar = 8, 2024 at 11:31=E2=80=AFAM Warner Losh <imp@bsdimp.com> = wrote:


On Thu, Mar 7, 2024 at 5:08=E2=80=AFPM Rich Salz = <rich.salz@gmail.com> = wrote:
I believe Snyder was an MIT Master's = thesis, finished in 1975[1].  There was a fair amount of C and = compiler work at MIT LCS, perhaps JNC can post some info. I think = Snyder's compiler was used for the MIT PC/IP[2] project; the links at = BitSavers imply they are related. PC/IP brought TCP and clients to DOS 3 = machines and was commercialized as FTP software and was one of the = reasons for the creation of the MIT license[4]. BDS C[3] was done by an = MIT drop-out, Leor Zolman. I bought my first motorcycle from him :) BDS = C was used for the first implementations of MINCE (mince is not complete = emacs -- those kinds of acronyms were popular) and Scribble, downsized = clones of emacs and Scribe, = respectively.


Judging from what's at the = bitsavers I posted, the source for pcip and this is the = backstory to = them.

Warner


= --Apple-Mail=_AE816D24-7816-4BC2-BB83-59D1B710EE68--