lua-users home
lua-l archive

Re: Compile on x86, run on ARM?

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


At the moment, we're running on an eval board, and no one seems to know
if it's little or big. Is there any way to tell using some Linux tool?
Thanks for you help.
Derek
Asko Kauppi wrote:
I could easily help you with this.
ARM can be placed into both big and little endian mode; do you know which one you have?
-asko
Stefan Schwarzbach kirjoitti 6.2.2006 kello 19.44:
Hi Derek,
I'm not sure, but could there be a problem with the byte order of values
bigger than 8bits? Little endian vs. Big endian.
I'm not a lua developer so this is more a notice than an answer
Greetings,
Stefan
Baker, Derek schrieb:
Hi,
Is it possible to run compiled Lua on an architecture other than that
which it was compiled on? For instance, can I compile a lua script to
bytecode on an x86 platform and run the bytecode on an ARM platform?
I'm trying that now on a very simple script, and get the error:
 lua: unknown number format in test.byt
when trying to run it. This happens when compiling on x86 and trying
to run on ARM as well as compiling on ARM and trying to run on x86.
All running Linux, btw.
Thanks,
Derek

AltStyle によって変換されたページ (->オリジナル) /