lua-users home
lua-l archive

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


> - 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