From: | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
Newsgroups: | comp.compilers,comp.arch |
Date: | Fri, 05 Dec 2008 06:10:43 +0100 |
Organization: | Compilers Central |
References: | 08-12-014 08-12-016 08-12-018 |
Keywords: | OOP, architecture |
Posted-Date: | 05 Dec 2008 10:14:13 EST |
Chris Gray schrieb:
> Well, its not a real machine, but here's an opcode description from my
> current bytecode system:
>
> bc_gmeth, /* Get METHod. The top-of-stack is the reference to an
> interface or capsule. The method vector is loaded
> from offset 16 in the interface or capsule. Then,
> the single 16 bit argument is added to the vector
> address, and the actual method reference is loaded
> from there. */
>
> I can't see it being worth adding to a real CPU, however - it would
> pipeline badly (two serialized fetches) and is trivial to build out of
> existing instructions.
ACK. Indirect addressing modes can be emulated, so that the fetches can
be interleaved by the compiler with other instructions, not requiring
memory references.
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.