lua-users home
lua-l archive

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


> I am assuming if I try this lundump patch on my Target system, it
> would mean that I can use a totally standard luac build on the pc, use
> that to produce a lua script binary, then I would download that to my
> target board. The patched Target Lua would realise it is running on
> a big endian system, then it compares that to the binary header byte
> that says it was built on a big endian CPU, then do the appropriate
> byte swaps when it loads the binary image into RAM ?

If the only difference between the two machines is endianness then the
modified lundump.c that I posted should work as you describe. And yes
it has been tested.