From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27222 invoked from network); 2 Jan 2023 18:42:30 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 2 Jan 2023 18:42:30 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id D2BD74249B; Tue, 3 Jan 2023 04:42:29 +1000 (AEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by minnie.tuhs.org (Postfix) with ESMTPS id 0102042498 for ; Tue, 3 Jan 2023 04:42:26 +1000 (AEST) Received: by mail-pf1-f169.google.com with SMTP id a30so3512243pfr.6 for ; Mon, 02 Jan 2023 10:42:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=HhLuc9RBOUopmyWGu1aHQzyXKmkhUKyXwOTnInMt+Cw=; b=o3IgG4hGDNBg/1eRNXJBuFgEbAkc/nBuoX0HZUIVdgAr6eCYXHm/urAVf5QuPSgRuu c2dptJvejOkm+EbWwZuvmOIz2oCH2BLgqUoUTqsb7tEoDu9oceIU6ZiQeMBZaqO8ULuB VjeKaIyW5nYBk0ko5X7mF1/qMploPWEO+2QRiGd2fT9WB5bwmWyhbyrUlOxSO+66XMKJ eJcLHyMvemb4KwdjTauuyYHc+aoASJHlM2J+rYetP23PoCj0yvSGRMtEIf+fEnfM+n5I pbrSsO3tusQYGkAtgSPG/PcZyKTZbDwEX6aDPUpsdhTpdnjK2P3M1D0PqE+WrsycO3+L vmAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HhLuc9RBOUopmyWGu1aHQzyXKmkhUKyXwOTnInMt+Cw=; b=4Na7VPeNm7IyTdro6aPwr9q55QLVNXGsN+rrKOyK3g6SShgdZLHA9jWGiqoRruS9up jbTAp4lno9hugwiULqOBPpDaUgRwl3P8XKd+6eTd2e2wtCgatOb0i1YMcbZyZ0iqEL+r ikVPhlNH1AvOU0norbRNXEzf9ZGtMXXdNTb62GKl+v6DFr54kPzJcZQCrV7Gv+3OZ96V guN7EUKJuipVj0U0FaHoW/JR9FvQBaTu6y/wOO4Xg8qQQC6B85opFrNN7kgo8N+YsYEe 0AOWl1rR2TVZoPztoktYz4IAVBAE3vuDEt+iY8XA7KVsuBM/CCwkD4gGhSA4tGCv3KFh AqLA== X-Gm-Message-State: AFqh2kp1ZA8nz/lTTEh68tvVOEZylISBS0keqXb6G095hNnDX+/NQEqm 2NfrZGt4MpWUePpiGhYhn4E6snj1nJ8= X-Google-Smtp-Source: AMrXdXscr+zmy3vUdKTo2R2kHb3dNjqWPR3ZwPzFWH4XvjxnbJRoe5ibJchtG1isPNzXO0v6aaEQ2A== X-Received: by 2002:a62:e510:0:b0:582:5b8d:52be with SMTP id n16-20020a62e510000000b005825b8d52bemr6564552pff.8.1672684885789; Mon, 02 Jan 2023 10:41:25 -0800 (PST) Received: from smtpclient.apple (ip98-165-124-124.ph.ph.cox.net. [98.165.124.124]) by smtp.gmail.com with ESMTPSA id z7-20020a623307000000b00576d4d69909sm18772139pfz.8.2023.01.02.10.41.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jan 2023 10:41:25 -0800 (PST) From: Adam Thornton Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Message-Id: <444D1F28-37A8-402A-874D-38507F2DE65D@gmail.com> Date: Mon, 2 Jan 2023 11:41:14 -0700 To: COFF X-Mailer: Apple Mail (2.3731.300.101.1.3) Message-ID-Hash: 4TGG7BP4DD6LN6B6RGSROAWYYZNKPKLS X-Message-ID-Hash: 4TGG7BP4DD6LN6B6RGSROAWYYZNKPKLS X-MailFrom: athornton@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [COFF] GCC boostrapper? Sort of a continuation of "a few comments..." List-Id: Computer Old Farts Forum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: So, all the shell-portability talk on TUHS reminds me of something I = believe I saw back in the 90s, and then failed to find a few years ago = when I went looking. But my Google-fu is not great, so maybe I just didn't look in the right = place. I was trying to port Frotz to TOPS-20, because I wanted to run the = Infocom games on TOPS-20 on an emulated PDP-10. (The only further = causality to the chain was a warning in the Frotz sources that it = assumed 8-bit bytes and if you wanted to try to port it to a 36-bit = environment, good luck; this is the difference between "stuff I do fo = fun" and "stuff that needs a business justification".) I had a K&R C = compiler available, but the sources were all ANSI C. I had remembered that deprotoize had been part of an early GCC, and I = did manage to find deprotoize sources, buried, I think, in some dusty = piece of the Apple toolchain. But I also have a vague memory that GCC = at some point probably in the mid-to-late 1990s came with something that = was halfway between autoconf and Perl's bootstrapper. I *think* it was = a bunch of shell scripts that could put together a minimal C subset = compiler, which then could be used to build the rest of GCC. I'm pretty = sure it was released as a reaction to the unbundling of C compilers when = Unix vendors realized that was a thing they could do. I could not find that thing at all. Did I hallucinate it? It seems like it would have been an immensely = useful tool at the time. I ended up writing my own very half-assed deprotoizer and symbol mangler = (only the first six characters of the function name were significant, = because that's how the TOPS-20 linker works, and I don't know that I = could have gotten past that even with an ANSI compiler without having to = do significant toolchain work) which got me over the hump, but I have = remained curious whether there really was that nifty GCC bootstrapper or = whether I made that up. Adam=