lua-users home
lua-l archive

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


On 06.10.2016 15:48, Karol Drożak wrote:

The luac (5.1) manual says that:
"The binary files created by luac are portable to all architectures with the same word size." (http://www.lua.org/manual/5.1/luac.html).


This is not the whole truth, the architectures also need the same endianess.


Is there any way to have full bytecode compatibility for this two platforms?


Copile and run Lua on both platforms with the same word size, either both under 32 bit or both under 64 bit.
If that is not possble, you can modify luaconf.h to use a predefined word size instead of the system word size.

This is under the assumtion that both processors have the same endianess.
--
Thomas