<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>The kcc compiler comes installed with sources on the PANDA
      distribution for Tops-20.</p>
    <p>A review shows support for CompuServe's CSI interface (Tops-10)
      derivative and incomplete support for Tops-10.  That would be in
      libc as there are some things that you really can't make Tops-10
      do.<br>
    </p>
    <div class="moz-cite-prefix">On 3/14/20 4:53 PM, Clem Cole wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC20D2N+3TVDaKPFhK_9ixHQXrmuo+84Nv+fwPg+dkeq-RG=hA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Sat, Mar 14, 2020 at
            11:36 AM Robert Armstrong <<a href="mailto:bob@jfcl.com"
              moz-do-not-send="true">bob@jfcl.com</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div lang="EN-US">
              <div class="gmail-m_-3275279788888057377WordSection1">
                <p class="MsoNormal">  I remember using a C compiler
                  under TOPS-10, but that was far away and very long
                  ago.  Can anybody tell me if my memory is bad, or did
                  that really exist?  Was it a DEC product or a DECUS
                  thing?</p>
                <p class="MsoNormal"> </p>
                <p class="MsoNormal">Thanks</p>
                <p class="MsoNormal">Bob</p>
              </div>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">There are
            several, I have personally used a couple of them in the
            past.  The original one is the Snyder Compiler from MIT  for
            ITS (his 1973 MIT MS thesis is here: <a
              class="gmail-js-navigation-open" title="MAC-TR-149.pdf"
id="gmail-f25f52bf2fe2428c87b6ce93b4759b8d-936d0f25cf202feb048a07b05d8856fce41b1db5"
href="https://github.com/PDP-10/Snyder-C-compiler/blob/master/MAC-TR-149.pdf"
style="box-sizing:border-box;background-color:rgb(246,248,250);color:rgb(3,102,214);outline:none;font-family:-apple-system,system-ui,"Segoe
              UI",Helvetica,Arial,sans-serif,"Apple Color
              Emoji","Segoe UI
              Emoji";font-size:14px;white-space:nowrap"
              moz-do-not-send="true">MAC-TR-149.pdf</a> ) the sources
            are available, <a
              href="https://github.com/PDP-10/Snyder-C-compiler"
              style="font-family:Arial,Helvetica,sans-serif"
              moz-do-not-send="true">https://github.com/PDP-10/Snyder-C-compiler</a> 
            This is work he did originally at BTL under Dennis Ritchie
            and Steve Johnson's tutelage   -- it precedes the Johnson
            compiler (PCC).  This is very early in C development, there
            may be a version of Lesk's Portable I/O library in it (I've
            forgotten), but Dennis has not even started to think about
            stdio when Alan wrote it, much less more modern C ideas like
            unions and much of what he describes in K&R.  The
            language that it compiles is basically similar to UNIX 4th
            or 5th Edition with the assumptions being similar to the
            36-bit compiler Steve had written for the Honeywell machine
            at the time.</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">IIRC this
            compiler was originally for ITS, but we had running on
            TOPS-10 at CMU at some point in the mid/late 1970s.  I
            probably have a copy somewhere on an old PDP-10 backup tape.</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">Sometime
            between 81-85, Ken Harrenstien of SRI took the Stanford
            WAITS C Compiler from Ken Chen (called KCC) and updated it
            to be more modern.   IIRC the Harrenstein compiler actually
            fully supports the original ANSI C definition.  The ASCII
            doc files for it can be found here <a
              href="http://ftp.math.utah.edu/pub/kcc/"
              style="font-family:Arial,Helvetica,sans-serif"
              moz-do-not-send="true">http://ftp.math.utah.edu/pub/kcc/</a> and
            I suspect the compiler itself can be found by hunting around
            the Internet.  I personally never used it because I had long
            ago stopped working with PDP-10's by the time Ken created
            it, although I know a number of my PDP-10 friends said it
            works/worked well.  Chen's version that Harrenstien started
            with supported a more modern definition of the language than
            Snyder, and IIRC correctly was a little better integrated
            into the traditional PDP-10 I/O - <i>i.e.</i> supported a
            number of JSYS's directly.<br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">I know of two
            others, my old friend the late Jay Lepreau of Utah took the
            VAX Berkeley updated version of the Johnson compiler (PCC)
            and moved it to the PDP-10/20 at some point in the late
            1970s/early 1980s.  This version matched K&R and seems
            to have somewhat replaced the Snyder and Chen compilers as
            you could move things from V7 PDP-11's to the 10s reasonably
            easily.  As best I can tell, the Lepreau compiler was
            popular (particularly on TOPS-20) until the Harrenstien
            version of KCC came about.   I suspect you can dig it up if
            you have some patience, although, at this point, I would
            probably look for Harenstien's KCC.</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
          <div class="gmail_default" style=""><span
              style="font-family:arial,helvetica,sans-serif">There was
              at least one other I have heard about called the Sargasso
              C Compiler, but I know nothing about it.   Search is your
              friend, check out: </span><a
              href="https://groups.google.com/forum/#!topic/alt.sys.pdp10/gc2avXfEJMg"
              moz-do-not-send="true">https://groups.google.com/forum/#!topic/alt.sys.pdp10/gc2avXfEJMg</a></div>
          <div class="gmail_default" style=""><br>
          </div>
          <div class="gmail_default" style="">I have also heard that
            someone retargeted a version of gcc, but I have not idea how
            well that is maintained since most progress for gcc moving
            forward has been driven by support for modern architectures.</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"> </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>