On 3 Dec 99, at 11:15, Gilbert Carl Herschberger II wrote:
> Consider the following code. The address of each method is entered into a
> vtable that's indexed by opcode. A method can be found by a single pointer
> calculation vtable[ opcode ]. It interprets an opcode without the runtime
> overhead of a switch statement.
Actually isn't this what a compiler does with a switch statement
(generates a jump table)? And if the functions are small (which
you would hope opcode instructions would be) and indicated as
inline (or optimized that way), you should get all this with a much
clearer source syntax of standard switch and method calls... If this
is the case, IMHO it would be better to let the compiler do the
optimization.
-iain
_______________________________________________
Kernel maillist - [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel