[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Probably a weird question: Lua in big endian
- From: Ralph Hempel <rhempel@...>
- Date: Sun, 14 Dec 2008 14:51:42 -0500
Bogdan Marinescu wrote:
Thanks! If it also supports ARM in big endian mode, this could be
exactly what I need.
Except that I don't think you'll find the problem has to do with
the endianness of the processor and Lua.
I'm going to put a bet on a compiled code issue with the
compiler optimizing a copy or move incorrectly. Probably
in the memcpy() or memmove() operation.
What optimization level do you have the compiler set to?
PS: I'm just guessing here. I do have some experience with
debugging without a JTAG. Can you compile code snippets
to run on your target without Lua?
Can you do something like:
string = "abcdefgh"
for( i=0; i<8; ++i )
printf( "%s\n", &string[i] )