lua-users home
lua-l archive

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


On Fri, Apr 11, 2014 at 7:11 AM, Dirk Zoller <duz@sol-3.de> wrote:
Hello All,

we target many platforms with the software that embeds Lua.
For some of them it is more practical to cross compile on another
system than setting up and running the builds on the target.

A limitation I noticed seems to be that compiled Lua bytecode
is not portable. So I have to run at least the luac on a machine
that at least has the same byte-order and wordsize as the target.

This is a bit a pain, as we would otherwise host all compilers
on one big box. Now we keep some extra build systems alive just
for this which we could otherwise retire.

Anybody else struggling with this?
Is a platform independent byte-code desirable?

Cheers,
Dirk


I have had success using ChunkSpy to cross-compile Lua bytecode for other target machines. Give it a shot.

http://chunkspy.luaforge.net/