lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike Pall wrote:
> Modifying the VM to use the GCC
"labels as values" feature (void *jumptab[]={&&opcode1,...} and
goto *(jumptab[opcode])) would be an interesting experiment, though.
But I think it may be difficult for register starved machines (i.e. x86)
to keep all important variables (pc, base and maybe cl) in registers.

ISTR that I tried this modification in the 5.0beta timeframe
and the gain was only about 3% (x86)... a little disappointing.
--Adam