Endianness in C/C++
Re:Endianness in C/C++
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.
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.
-- Stu --