lua-users home
lua-l archive

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


> Lua bytecode is portable (a) across the same major.minor release (b)
> and provided that the compiling machine and the target machine have
> the same number of bytes per integer?

(a) yes. The ABI remains the same in minor releases.
    see http://www.lua.org/versions.html#numbering

(b) no: endianness, sizeof(int), sizeof(size_t), sizeof(Instruction),
    sizeof(lua_Number), and type of lua_Number should all be equal.