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=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3747 invoked from network); 2 Feb 2022 08:47:03 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2022 08:47:02 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id B38609D6C8; Wed, 2 Feb 2022 18:47:01 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 408209B9F3; Wed, 2 Feb 2022 18:46:55 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 5D1529B9F3; Wed, 2 Feb 2022 18:46:54 +1000 (AEST) Received: from vtr.rulingia.com (vtr.rulingia.com [45.77.232.82]) by minnie.tuhs.org (Postfix) with ESMTPS id 0A7BA9B95E for ; Wed, 2 Feb 2022 18:46:50 +1000 (AEST) Received: from server.rulingia.com (2001-44b8-31fc-0d00-81ce-ab9e-9a25-63cb.static.ipv6.internode.on.net [IPv6:2001:44b8:31fc:d00:81ce:ab9e:9a25:63cb]) by vtr.rulingia.com (8.16.1/8.16.1) with ESMTPS id 2128keix047379 (version=TLSv1.3 cipher=AEAD-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 2 Feb 2022 19:46:45 +1100 (AEDT) (envelope-from peter@rulingia.com) DKIM-Filter: OpenDKIM Filter v2.10.3 vtr.rulingia.com 2128keix047379 X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.16.1/8.16.1) with ESMTPS id 2128kYCJ069680 (version=TLSv1.3 cipher=AEAD-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 2 Feb 2022 19:46:34 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.16.1/8.16.1/Submit) id 2128kYp7069679; Wed, 2 Feb 2022 19:46:34 +1100 (AEDT) (envelope-from peter) Date: Wed, 2 Feb 2022 19:46:34 +1100 To: Dan Stromberg Message-ID: References: <0f83f174-eeca-30fb-7b98-77fb0da80f2e@gmail.com> <9E47A62E-3AAD-491E-9164-3DCAD22EC1F7@kdbarto.org> MIME-Version: 1.0 In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp Subject: Re: [COFF] Compilation "vs" byte-code interpretation, was Re: Looking back to 1981 - what pascal was popular on what unix? X-BeenThere: coff@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Computer Old Farts Forum List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Peter Jeremy via COFF Reply-To: Peter Jeremy Cc: Computer Old Farts Followers Content-Type: multipart/mixed; boundary="===============6405175842305153974==" Errors-To: coff-bounces@minnie.tuhs.org Sender: "COFF" --===============6405175842305153974== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nIdnuA5hdyDFD11L" Content-Disposition: inline --nIdnuA5hdyDFD11L Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =3D> COFF On 2022-Jan-30 10:07:15 -0800, Dan Stromberg wrote: >On Sun, Jan 30, 2022 at 8:58 AM David Barto wrote: > >> Yes, the UCSD P-code interpreter was ported to 4.1 BSD on the VAX and it >> ran natively there. I used it on sdcsvax in my senior year (1980). > >This reminds me of a question I've had percolating in the back of my mind. > >Was USCD Pascal "compiled" or "interpreted" or both? > >And is Java? They both have a byte code interpreter. A bit late to the party but my 2=A2: I think it's fairly clear that both UCSD Pascal and Java are compiled - to binary machine code for a p-code machine or JVM respectively. That's no different to compiling (eg) C to PDP-11 or amd64 binary machine code. As for how the machine code is executed: * p-code was typically interpreted but (as mentioned elsewhere) there were a number of hardware implementions. * Java bytecode is often executed using a mixture of interpretation and (JIT) compilation to the host's machine code. Again there are a number of hardware implementations. And looking the other way, all (AFAIK) PDP-11's were microcoded, therefore you could equally well say that PDP-11 machine code is being interpreted by the microcode on a "real" PDP-11. And, nowadays, PDP-11 machine code is probably more commonly interpreted using something like simh than being run on a hardware PDP-11. Typical amd64 implementations are murkier - with machine code being further converted ("compiled"?) into a variable number of micro-ops that have their own caches and are then executed on the actual CPU. =20 (And, going back in time, the Transmeta Crusoe explicity did JIT conversion from iA32 machine code to its own proprietary machine code). --=20 Peter Jeremy --nIdnuA5hdyDFD11L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmH6RNlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzSijw/9En2parrM3YQ6/Pl0Y8k4+20NpAgGBrkGy6irWLzc5T1JHoK4b5SDlrLF P1rREYPD8C3mvBVNC/AGi1TfVZTKxuvstbxza8U0L37yXUYy57lO4acZi9BlgV9G bhI9RuXJ4Cy+4MCVcboORNyQBatPnb7I3jEfnHbHmmbVDkLHjQz5IFwWzq7izrJR KYz5chdqTVV9wHC7Ne9Oul71gmmpBk+nNha3YYCuoVvedRcYfxHJlSPJcyjwYrEh lk9ro+9r7CGbuZJaM0qr1f5+hiieB1WDtLoBXLZ0WdOPET7lx0gobbCcHzy3nSYd RJ/snQJu7D4nNYCtECKv+oGh71A7Le9Dsl8Rhd8NAM4/9pDEd0a/REycVhGMjW0Q Tz6yjBz2WWR8XsUSUWUn9HzfwRuchmvZqIn6g5dB5pVD0oKlpPijci7EBTauVpc2 ZVYB4DqP7yfEV3p/QvWxikQr+GzKetxeI2uSUkDzDSc3Pw/0EVcNiq6C7MyEHKme nCnanmYmJY8G2cLRbOoXq5yZWk+te1akr2+7JdzxDeg5mzvuWTUSTxhuvFYhMLP8 x9wD+GK6nMhWq1M5bGCF3m3O6cx4gCkm5FkJ6g8k2xWjzv8/YqKys9kuKvkY38BV H1zFXHvNfFXJKT1pUl3Nyaw1vpL/4k8aSfnkDq3gyWp6cxdrb1E= =1zv5 -----END PGP SIGNATURE----- --nIdnuA5hdyDFD11L-- --===============6405175842305153974== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQ09GRiBtYWls aW5nIGxpc3QKQ09GRkBtaW5uaWUudHVocy5vcmcKaHR0cHM6Ly9taW5uaWUudHVocy5vcmcvY2dp LWJpbi9tYWlsbWFuL2xpc3RpbmZvL2NvZmYK --===============6405175842305153974==--