[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Compile on x86, run on ARM?
- From: Asko Kauppi <askok@...>
- Date: Tue, 7 Feb 2006 01:10:24 +0200
-bash-2.05b$ uname -a
Linux kepponen 2.4.22-xfs #1 Sun Jun 12 21:17:17 PDT 2005 armv5b
unknown unknown GNU/Linux
The 'b' is for big endian (NSLU2)
"The x86 architecture is little endian. Many ARM processors support
either mode, but usually are used in little endian mode."
Baker, Derek kirjoitti 6.2.2006 kello 21.47:
At the moment, we're running on an eval board, and no one seems to
if it's little or big. Is there any way to tell using some Linux tool?
Thanks for you help.
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?
Stefan Schwarzbach kirjoitti 6.2.2006 kello 19.44:
I'm not sure, but could there be a problem with the byte order
bigger than 8bits? Little endian vs. Big endian.
I'm not a lua developer so this is more a notice than an answer
Baker, Derek schrieb:
Is it possible to run compiled Lua on an architecture other than
which it was compiled on? For instance, can I compile a lua
bytecode on an x86 platform and run the bytecode on an ARM
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
to run on ARM as well as compiling on ARM and trying to run on x86.
All running Linux, btw.