The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Clem Cole <clemc@ccc.com>
To: Dibyendu Majumdar <mobile@majumdar.org.uk>
Cc: TUHS main list <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] Looking for final C compiler by Dennis Ritchie
Date: Thu, 19 Jul 2018 10:50:35 -0400	[thread overview]
Message-ID: <CAC20D2MFS6NB1LHC3X9Zq_wF4GiQAQpvwPXqhCVezVxKFjLz2g@mail.gmail.com> (raw)
In-Reply-To: <CACXZuxdfrX-idTiQJvcmtd7MBT0XjLN+LKkyvbdNfmU=z09q7g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]

On Wed, Jul 18, 2018 at 5:37 PM, Dibyendu Majumdar <mobile@majumdar.org.uk>
wrote:

> Hi
>
> I am interested in finding out if the last C compiler code (not the
> earliest versions which I know
> are available) written by Dennis Ritchie is available somewhere. I
> assume that the C compiler in V7 code was written by him?
>
> Thanks and Regards
> Dibyendu
>
​I'm not sure if this is the last.   This is a pointer to the V7 Ritchie
Compiler:  https://minnie.tuhs.org//cgi-bin/utree.pl?file=V7/usr/src/cmd/c
- The sources and the makefile build the three passes /lib/c[012]
This should be a good starting point/base line.

Be careful because the Johnson Compiler (pcc) was also included with V7 and
is a different technology.

This is important because their are modifications to both the Ritchie and
Johnson compilers 'in-the-wild' for other back-ends and new optimizations.
  I for instance, re-targeted the Ritchie compiler to what would become the
68000 (it was not yet numbered, it was an experimental chip when we had
access to it in the late 1970s in Tek Labs - mine was a 16 bit 'int' as I
was coming primarily from the PDP-11 at the time and the chip was a 16 bit
chip internally - so the code was tight and clean and I basically
substituted PDP-11 instruction sequences for 68000 sequences).   IIRC, Jack
Test's 68000 compiler from MIT which was about 18 mons later was based on
the Johnson compiler but he used a 32 bit 'int' which proved easier for
porting programs from the Vax, as the chip supported 32 bit words even
though it took 2 ticks to do anything [so Jack's compiler generated slower
code for many simple ops].

I recommend, that google for the old USENIX tapes and see what you turn up
and compare.

ᐧ

[-- Attachment #2: Type: text/html, Size: 3497 bytes --]

  parent reply	other threads:[~2018-07-19 14:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-18 21:37 Dibyendu Majumdar
2018-07-19  5:41 ` arnold
2018-07-19 19:23   ` Dibyendu Majumdar
2018-07-20 22:04     ` Dibyendu Majumdar
2018-07-19 14:50 ` Clem Cole [this message]
2018-07-19 19:40   ` Dibyendu Majumdar
2018-07-20 10:04 Paul Ruizendaal
2018-07-20 19:57 ` Dibyendu Majumdar
2018-07-22 20:49 ` Dibyendu Majumdar
2018-07-23  9:24   ` Paul Ruizendaal
2018-07-23 10:28     ` arnold
2018-07-23 19:35       ` Dibyendu Majumdar
2018-07-24  6:37         ` arnold
2018-07-23 15:12   ` Clem Cole
2018-07-23 15:55     ` Larry McVoy
2018-07-23 19:29     ` Dibyendu Majumdar
2018-07-23 20:12     ` Bakul Shah
2018-07-23 20:48       ` Dibyendu Majumdar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAC20D2MFS6NB1LHC3X9Zq_wF4GiQAQpvwPXqhCVezVxKFjLz2g@mail.gmail.com \
    --to=clemc@ccc.com \
    --cc=mobile@majumdar.org.uk \
    --cc=tuhs@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).