Related articles |
---|
[5 earlier articles] |
Re: What is byte-code ? joe@burgershack.com (Randy) (2005-03-08) |
Re: What is byte-code ? Brian.Inglis@SystematicSW.ab.ca (Brian Inglis) (2005-03-08) |
Re: What is byte-code ? torbenm@diku.dk (2005-03-08) |
Re: What is byte-code ? torbenm@diku.dk (2005-03-08) |
Re: What is byte-code ? cdc@maxnet.co.nz (Carl Cerecke) (2005-03-08) |
Re: What is byte-code ? torbenm@diku.dk (2005-03-15) |
Re: What is byte-code ? kers@hpl.hp.com (Chris Dollin) (2005-03-15) |
Re: What is byte-code ? xous@xouslab.com (Xous - Jose R. Negreira) (2005-03-18) |
Re: What is byte-code ? nathan.moore@sdc.cox.net (Nathan Moore) (2005-03-24) |
Re: What is byte-code ? anton@mips.complang.tuwien.ac.at (2005-03-31) |
Re: What is byte-code ? anton@mips.complang.tuwien.ac.at (2005-03-31) |
Re: What is byte-code ? kers@hpl.hp.com (Chris Dollin) (2005-03-31) |
Re: What is byte-code ? nathan.moore@sdc.cox.net (Nathan Moore) (2005-04-02) |
[7 later articles] |
From: | Chris Dollin <kers@hpl.hp.com> |
Newsgroups: | comp.compilers |
Date: | 15 Mar 2005 01:41:28 -0500 |
Organization: | HPLB |
References: | 05-03-015 05-03-026 |
Keywords: | interpreter |
Posted-Date: | 15 Mar 2005 01:41:28 EST |
Nathan Moore wrote:
> Byte code is interpreted one byte at a time, so that endianness is not
> an issue.
Depending on why you mean by `byte` and `bytecode` that may not be true ...
The most recent VM I wrote had instructions that were 16 bits
wide. You could say it had 16-bit bytes. (As it happens, the opcode
part was 5 bits wide, with 3 other bits that were either an operand
specification or more opcode - so you *could* say it was an
8-bit-byte-code, because the opcodes are 8 bits wide and the operand
another 8.)
(I called them `shortcodes`.)
(Yes, branch instructions demanded some attention. There were two, one
for forward, one for backward. There's a certain schoolboy pleasure in
having a GOB instruction.)
--
Chris "electric hedgehog" Dollin
Return to the
comp.compilers page.
Search the
comp.compilers archives again.