>>>> "John" == John Foust
<jfoust at threedee.com> writes:
John> At 11:13 AM 8/6/2008, Paul Koning wrote: I thought it was just
John> tokenized because there were "de-compilers" that restored
John> "compiled" code to real source.
> You may be thinking of RT-11 BASIC, where the
"list" command
> actually did exactly that.
John> No, I'm think of circa '83 VAX-based BASIC-Plus (2?).
BP2 is a true compiler, not a P-code system.
By the way, I meant to mention another compiler that did something
like P-code: RT-11 Fortran. The actual scheme was called "threaded
code" because it was basically a stream of function pointers. (Come
to think of it, that's a common Forth encoding as well.) That's about
as fast as straight code if most of what you need is calls to support
functions, and more compact because you're not including the opcode
word.
paul