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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 469257ff for ; Tue, 23 Apr 2019 22:54:21 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 3361C94924; Wed, 24 Apr 2019 08:54:20 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 1EE1E948EF; Wed, 24 Apr 2019 08:53:37 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=papnet.eu header.i=@papnet.eu header.b="hOpvSGqo"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="fi82lZ8k"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 35C06948EF; Wed, 24 Apr 2019 08:53:33 +1000 (AEST) X-Greylist: delayed 386 seconds by postgrey-1.36 at minnie.tuhs.org; Wed, 24 Apr 2019 08:53:32 AEST Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by minnie.tuhs.org (Postfix) with ESMTPS id 14CA6948EE for ; Wed, 24 Apr 2019 08:53:32 +1000 (AEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 544AD20D2B; Tue, 23 Apr 2019 18:47:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 23 Apr 2019 18:47:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=papnet.eu; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=TmkM1/HCrmRuofbUMIRjHNHkn1k 2kOMqYSXyMMxtNhY=; b=hOpvSGqoYYpNRio+Gz7NFteQ/yEFvRJjeRqFu9VmNba V+KhWQ1UBqQUL2C8PkOcFOa5sLuN4OHkUqjq6+j9mc843v8rWRnbrLIMe2bfihcy EKFT8Gwu8vjgckr5ncMkIuQy64QXsmPTIzeBY2NRZaMRShFfO0/Mwd9dtwozaXxT l6T7PGa399H9ee8VstUAIORqLCP3MbFpYFISMroWf0NvRoJgkTgTkcvSk5s5L91q O7kPz8/78NNTlPvQ/wdxHu6GobLWGgYvhVw9qWM6YtNtqAMiVCkYVioetSauGm24 NlrbnX9lZBIb2DS2bU7rS1TzxwYIVbVA1pMe04MtjgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=TmkM1/ HCrmRuofbUMIRjHNHkn1k2kOMqYSXyMMxtNhY=; b=fi82lZ8kKHuz0xk6V79dqj jR7t4cvFqvCV+B80lSVfP5OwsR0XYjojVz9RMs/Uz9zhA8hHEzSn7Ifm1ZP81LjL yxMbZq5ho2/GpJH6wfDDjz6Bjp+eZhJHpTRsH4dRP0xpvpvasK08bypv/0j+U1s1 pnqLsneC4M1vpgdbLBFHlWP1ntwxtI3ZbAVVG8ThVowKcOaXZWjJrsrsSy91Cm2+ nzq86yZblmRQcv6N2b5vSD7+OPRnNefnOJ98wjofLcv8sBhuU0L7r/8MXjztHQew b6nzmD/H2zm4RJFAPPiaCCcHyKPwiF7OiYhxtyBX/reNE8ixxdosdcO4R/OmpGwQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeelgddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujggfsehttdertddtredvnecuhfhrohhmpeetnhhgvghl ohcurfgrphgvnhhhohhffhcuoegrrghpsehprghpnhgvthdrvghuqeenucffohhmrghinh epshhquhhoiigvrdhnvghtpdhgihhthhhusgdrtghomhenucfkphepjeejrdduuddrudej ledrudeivdenucfrrghrrghmpehmrghilhhfrhhomheprggrphesphgrphhnvghtrdgvuh enucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from indra.papnet.eu (x4d0bb3a2.dyn.telefonica.de [77.11.179.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 191DB103C9; Tue, 23 Apr 2019 18:47:04 -0400 (EDT) Date: Wed, 24 Apr 2019 00:47:02 +0200 From: Angelo Papenhoff To: Robert Swierczek Message-ID: <20190423224702.GA90155@indra.papnet.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Subject: Re: [TUHS] New project to recreate the B compiler for the PDP-11 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" Nice project. I wanted to do something like this too at some point. I documented B for the PDP-7 and -11 here: http://squoze.net/B/ I have a partially working, sort of portable B compiler (in C) here: http://squoze.net/B/b.zip Since B is so damn portable I wanted to target a bunch of architectures. Started amd64 and pdp-8 but then other things got in a way (a VCF) and my attention shifted. best, Angelo On 23/04/19, Robert Swierczek wrote: > I just started a project to recreate the B compiler for the PDP-11 as > authentically as possible, given the few fragments that remain and > some educated guesswork. It should be fun (for various definitions of > fun). > > Here is the repository https://github.com/rswier/pdp11-B > > I have borrowed some tools from Warren's > https://github.com/DoctorWkt/unix-jun72 > > I have made a good start at reverse engineering the B run time library > in /usr/lib/libb.a. I have tried to make the source match the same > style as the earliest C library found on the last1120c-bits tape. The > remaining functions in libb.a include printf and printn which appear > to be written in B. This should provide more clues needed to create > the compiler. > > I am also tackling the dis-assembly of the threaded code interpreter > /usr/lib/bilib.a (which at the moment is a big mess on my hard-drive) > > Later steps will include creating the B compiler itself by carefully > pruning down the last1120c C compiler. The fun here will be to > boot-strap the B compiler without help from any existing modern > compilers. I think TMG will come into play to make that happen. > > All are welcome to contribute! > > Rob