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=-1.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 ac4ea391 for ; Fri, 20 Sep 2019 23:08:27 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id E9BDC947C7; Sat, 21 Sep 2019 09:08:26 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 080C293D21; Sat, 21 Sep 2019 09:07:27 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id C485693D21; Sat, 21 Sep 2019 09:07:24 +1000 (AEST) X-Greylist: delayed 809 seconds by postgrey-1.36 at minnie.tuhs.org; Sat, 21 Sep 2019 09:07:22 AEST Received: from fuz.su (fuz.su [5.135.162.8]) by minnie.tuhs.org (Postfix) with ESMTPS id F01D493D07 for ; Sat, 21 Sep 2019 09:07:22 +1000 (AEST) Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.15.2/8.15.2) with ESMTPS id x8KMroR6026365 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 21 Sep 2019 00:53:51 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.15.2/8.15.2/Submit) id x8KMro4N026364 for tuhs@minnie.tuhs.org; Sat, 21 Sep 2019 00:53:50 +0200 (CEST) (envelope-from fuz) Date: Sat, 21 Sep 2019 00:53:50 +0200 From: Robert Clausecker To: tuhs@minnie.tuhs.org Message-ID: <20190920225350.GA26132@fuz.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) Subject: [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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Greetings! As a project for our university's seminar on the PDP-8 I wrote a compiler for the B language targeting it. 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). 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). https://github.com/fuzxxl/8bc Yours, Robert Clausecker -- () ascii ribbon campaign - for an 8-bit clean world /\ - against html email - against proprietary attachments