[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:12:05 +0200
Derek's issue was about compiled lua bytecode, not compiling Lua
Matthew Percival kirjoitti 7.2.2006 kello 0.00:
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 compiled Lua on an x86 and run it on an ARM processor. If you have
your arm-linux- toolchain already prepared, this is one of the easier
programs to crosscompile. From recollection, all I did was
edit ./config so that everything was set up for Linux, and changed gcc
to arm-linux-gcc, then changed ln to arm-linux-ln in ./Makefile.
a very pain-free process.