Hi

>
>The multiplication you assume is actually a shift, when the table is laid
out
>properly. See "strength reduction" in any good introductory book on
compiler
>construction.

I know that. But it depends on the Optimization of C Compiler.

>
>Congratulation, in principle, you have just detected what a JIT is.
>However, the code won't be so simple, as you'll need certain parameter
>checking and exception handling; thus you'll have to pass more parameters
>to the routine unless you want to do everything with global variables
>which is a Bad Thing(tm).

Yes, I puporse a generic idea of performing a simple JIT. If we need to
write JIT,
LOTS OF WORK need to do.

>The bottleneck is not where you expect it to be.

Well, Yes, Not only Bytescode Comparsion is the bottleneck. Lots of Area
need to
work on so that It can increase the performance.

Regards,

Hilary


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to