lua-users home
lua-l archive

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


imho precompiled bytecode is not designed to be portable.

Ulrich.

Am 19.11.2014 um 16:10 schrieb qingkui.hu:
I generate the two luac by cross-building on the Mac OSX 10.9.4,one is for 32bit and another is for 64bit.Then I use these two compiler to compile the lua files,e.g:

luac -o hellolua-32bit.lua hello.lua
luac -o hellolua-64bit.lua hello.lua

hellolua-32bit.lua is different from hellolua-64bit.lua.When i use these files in my project, i found hellolua-32bit.lua also can be parsed correctly for 64bit machine(IPhone 5s).But in my memory, pre-compiled bytecode is not endian-independent.My lua.a is fat lib including the x86_64,arm64,armv7 and i386.

Can you tell me the reason.Thanks.