Computer Old Farts Forum
 help / color / mirror / Atom feed
From: Peter Jeremy via COFF <coff@minnie.tuhs.org>
To: Dan Stromberg <drsalists@gmail.com>
Cc: Computer Old Farts Followers <coff@tuhs.org>
Subject: Re: [COFF] Compilation "vs" byte-code interpretation, was Re: Looking back to 1981 - what pascal was popular on what unix?
Date: Wed, 2 Feb 2022 19:46:34 +1100	[thread overview]
Message-ID: <YfpE6mvd2rKdG38g@server.rulingia.com> (raw)
In-Reply-To: <CAGGBd_r24ODfR9oX_sMHkDWOotz9Bhup=CgDEgC=NNq9BFuNcg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1807 bytes --]

=> COFF

On 2022-Jan-30 10:07:15 -0800, Dan Stromberg <drsalists@gmail.com> wrote:
>On Sun, Jan 30, 2022 at 8:58 AM David Barto <david@kdbarto.org> 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¢:

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.  
(And, going back in time, the Transmeta Crusoe explicity did JIT
conversion from iA32 machine code to its own proprietary machine code).

-- 
Peter Jeremy

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

[-- Attachment #2: Type: text/plain, Size: 141 bytes --]

_______________________________________________
COFF mailing list
COFF@minnie.tuhs.org
https://minnie.tuhs.org/cgi-bin/mailman/listinfo/coff

       reply	other threads:[~2022-02-02  8:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0f83f174-eeca-30fb-7b98-77fb0da80f2e@gmail.com>
     [not found] ` <CAC20D2Nh0t9dxVbRvXFxXkCfEaWkmp9MP1Xf+=YC3rfXf3SK3g@mail.gmail.com>
     [not found]   ` <9E47A62E-3AAD-491E-9164-3DCAD22EC1F7@kdbarto.org>
     [not found]     ` <CAGGBd_r24ODfR9oX_sMHkDWOotz9Bhup=CgDEgC=NNq9BFuNcg@mail.gmail.com>
2022-02-02  8:46       ` Peter Jeremy via COFF [this message]
2022-02-02 10:55 Noel Chiappa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YfpE6mvd2rKdG38g@server.rulingia.com \
    --to=coff@minnie.tuhs.org \
    --cc=coff@tuhs.org \
    --cc=drsalists@gmail.com \
    --cc=peter@rulingia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).