[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Byte code compiling question
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 5 Oct 2011 19:42:20 -0300
> 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.