tech:architecture_cpu_endianness_byte_order
Architecture CPU Endianness byte order
big-endian, little-endian, byte order, CPU
Source http://serverfault.com/questions/163487/how-to-tell-if-a-linux-system-is-big-endian-or-little-endian
Voir https://fr.wikipedia.org/wiki/Endianness
On a Big Endian-System (Solaris on SPARC)
$ echo -n I | od -to2 | head -n1 | cut -f2 -d" " | cut -c6 0
On a little endian system (Linux on x86)
$ echo -n I | od -to2 | head -n1 | cut -f2 -d" " | cut -c6 1
tech/architecture_cpu_endianness_byte_order.txt · Dernière modification : de 127.0.0.1
