PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Big or little endian

Is the pocket pc os big or little endian?
Little endian.

It's not a function of the OS, but rather the underlying hardware architecture.

You can run this code to determine if the architecture supports little or big endian.

int n = 1;

if (*(char*)&n;)
OutputDebugString(TEXT("little endian\n"));
else
OutputDebugString(TEXT("big endian\n"));
cool, thanks.
little endian, just like the R3000A :)
I know ARM is little endian, but what about SH3 and Mips. Both little-endian when used in PPC?
IIRC, the ARM (at least) can pretend to be either big or little endian. I seem to recall it processing instructions always in little endian, but data can be either way, I think. (I may be wrong, and I haven't checked though).

I'd be surprised if a PPC used it in big-endian configuration though.