Page 1 of 1

Endianness in C/C++

Posted: Thu Nov 04, 2004 5:33 am
by Perica
..

Re:Endianness in C/C++

Posted: Thu Nov 04, 2004 6:48 am
by df
yes it will work.

i dont know if the standards define it, more i think its just a byproduct of how all cpus work. 'in memory' its just stored that way in the register (ie: sparc64, x86 etc). now how true that is for a stack machine i don tknow.

but your code will produce the same result on sparc64 as it will on x86 and alpha and mips.