From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ea31c77a for ; Mon, 23 Sep 2019 18:02:06 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 09CEB9B8F0; Tue, 24 Sep 2019 04:02:05 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 0FB87946BD; Tue, 24 Sep 2019 04:01:42 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lubrq9tT"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 3F380946BD; Tue, 24 Sep 2019 04:01:40 +1000 (AEST) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) by minnie.tuhs.org (Postfix) with ESMTPS id 9DC7793F38 for ; Tue, 24 Sep 2019 04:01:39 +1000 (AEST) Received: by mail-oi1-f169.google.com with SMTP id w17so8385314oiw.8 for ; Mon, 23 Sep 2019 11:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sCY7c6onGcOO4Yd+Vku4bV7PbJDxQxuuRdl0A6NwLCk=; b=lubrq9tTtEMdOxEDjwgMgnQrgsdspjFikdn2vNjAZa5Qf+QWhtd5vLDwTEtUwYSsmZ yoE6tPHbr0fg/3brE0X1oDYJsCBsUFDdWStAl66qsxjeNS2Ru34AdrPNy4B2njk5m3Qz PlDieDKOVWC0+eQOI7C70VnjfKUBz7zLy+msh6cj+qIwCTF/xD3iGTZAiy3bMW38PQRx Btjk2xyNMHdiTH0O4SUtU+NZs7IZhptCCD+s0VoN2NqaWyzwDVLzdxxh0xvLb7s9ZIxf 1PhPcxj50hOkq6UW7DtBk8rYMwkheW2eHhKrLjPdS4dG38+KdxqD0xpV5yI5Pw1Ovudp qHEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sCY7c6onGcOO4Yd+Vku4bV7PbJDxQxuuRdl0A6NwLCk=; b=F2FPMoVi6N9joUmogdPC/VP9lqgz8VHYTKy4ZAXYBnCS/G21yGuxrz+XMihaC/gWsR kuemvIlHci8sbk81oGwmPsJfRztfDeZP6v39IAHp1QqeMUCG3OgGhdezy1Ax3DlBPuaA AjGmWs5ipVbW+sulCsg6xqWl3QBVt09MtJC1yIbim9yTjyjlJmfZilQ+KMvtHgFS38Bp Fhe2SErocc2bhhk6qb/wmEnI/UBm+ARiAkWMwFRZ/fEQHB0SMGtPINMZbsgrdy0Br8TH eJhNdnA7fETHaYdun1rW2twTqQyolC8TOchN4Wg/uLJDDFmp+kOJ4F1txJfXw9FCNt+L i4Wg== X-Gm-Message-State: APjAAAXg4g8MhNj6msxAEeNhOfc+ItOmf2H/qu9uA4Woin9TacgsyuHV 689V4SCj8mNh1fTMhTAxjcuCCUUg3AJH0GvNnmE= X-Google-Smtp-Source: APXvYqwRCokuEMlTsw+pcjgm8scjvljUYsfQMeY0IPuVBDoodH6p1sLkQFZn7TrxQivPBXexobaUVf19xPn2JOvJRww= X-Received: by 2002:aca:b902:: with SMTP id j2mr1070265oif.169.1569261698888; Mon, 23 Sep 2019 11:01:38 -0700 (PDT) MIME-Version: 1.0 References: <20190920225350.GA26132@fuz.su> In-Reply-To: From: Henry Bent Date: Mon, 23 Sep 2019 14:01:25 -0400 Message-ID: To: Clem Cole Content-Type: multipart/alternative; boundary="0000000000001f379505933c360c" Subject: Re: [TUHS] 8bc -- a B compiler for the PDP-8 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: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000001f379505933c360c Content-Type: text/plain; charset="UTF-8" On Mon, 23 Sep 2019 at 13:27, Clem Cole wrote: > below... > > On Fri, Sep 20, 2019 at 7:08 PM Robert Clausecker wrote: > >> It's a bit rough around >> the edges and the runtime code needs some work (division and >> remainder are missing), but it does compile B code correctly, >> generating acceptable code (for my taste, though the function call >> sequence could be better). >> > A suggestion, Load TSS/8 on to your simh system with its Algol compiler > and look at how it generated code. I would suspect you can use Algol's > calling conventions and probably some of its runtime. Google is your > friend. I had it running a while back, but do not have it active at the > moment - the key is all the pieces should be findable in the wild,. > > >> >> I hope some of you enjoy this compiler for an important historical >> language for an important historical computer (makes me wonder why >> the two weren't married before). >> > Might have been, although when Ken created B for the PDP-7, BCPL was his > model and there were already implementations of BCPL around for a number of > processors. I would not be surprised if there was a BCPL/8. I would check > in the DECUS library, much of which I think can be found online these days > ??bit savers??. > I checked here: http://so-much-stuff.com/pdp8/software/decus.php but did not immediately see anything BCPL related. 8-330 is TSS/8 ALGOL. -Henry --0000000000001f379505933c360c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, 23 Sep 2019 at 13:27, Clem Cole &= lt;clemc@ccc.com> wrote:
<= div class=3D"gmail_quote">
below...

On Fri, Sep 20, 2019 at 7:08 PM Robert Clause= cker <fuz@fuz.su>= wrote:
=C2=A0 It's a bit r= ough around
the edges and the runtime code needs some work (division and
remainder are missing), but it does compile B code correctly,
generating acceptable code (for my taste, though the function call
sequence could be better).
A suggestion,=C2=A0 =C2= =A0Load TSS/8 on to your simh system with its=C2=A0Algol compiler and look = at how it generated code.=C2=A0 I would suspect you can use Algol's cal= ling conventions and probably some of its runtime.=C2=A0 =C2=A0Google is yo= ur friend.=C2=A0 I had it running a while back, but do not have it active a= t the moment - the key is all the pieces should be findable in the wild,.
=C2=A0

I hope some of you enjoy this compiler for an important historical
language for an important historical computer (makes me wonder why
the two weren't married before).
Might have be= en, although when Ken created B for the PDP-7, BCPL was his model and there= were already implementations of BCPL around for a number of processors.=C2= =A0 I would not be surprised if there was a BCPL/8.=C2=A0 I would check in = the DECUS library, much of which I think can be found online these days ??b= it savers??.

= I checked here: http://so-much-stuff.com/pdp8/software/decus.php but did not immediat= ely see anything BCPL related.=C2=A0 8-330 is TSS/8 ALGOL.

-Henry
--0000000000001f379505933c360c--