Re: About pre-compiled bytecode
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: About pre-compiled bytecode
- From: Ulrich Schmidt <u.sch.zw@...>
- Date: 2014年11月19日 16:18:37 +0100
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.