lua-users home
lua-l archive

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


Andrew Teirney wrote:
I was just wondering whether anyone knows or has tried compiling lus script to byte code on a windows or linux platform, where the ints are size 32-bits, and then trying to execute this compiled lua chunk on a lua engine where the ints are natively 16-bit.

If you run luac on a 32-bit platform, it's output is guaranteed to run on any other 32-bit platform. Lua can handle the endian switch. But the output will not run on a 16-bit platform. You'll have to somehow "fix" luac to output 16-bit stuff.

- Peter Shook