lua-users home
lua-l archive

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


Just wanted to thank all of you for the great replies :-) power to Lua !

Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> - You could change the order of the 'RESERVED' enum in llex.h

No, compiled code contains no lexical elements.

You could reorder the VM instructions in lopcodes.h, but then you need
to fix lopcodes.c. It's simpler to swap the position of the B and C
fields in the VM instructions, if you want to go this way.

A much simpler solution is to write your own format for precompiled
code. Simply reorder the items in DumpFunction (and LoadFunction).
Or reorder or alter the items in luaU_header (this seems the simplest solution).
And don't tell anyone!
--lhf


Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.