メモ
- Linux: How to tell if system is big endian or little endian? - Server Fault
http://serverfault.com/questions/163487/linux-how-to-tell-if-system-is-big-endian-or-little-endian
$ echo -n I | od -to2 | head -n1 | cut -f2 -d" " | cut -c6
を実行し、
- 出力が 0 -> ビッグエンディアン
- 出力が 1 -> リトルエンディアン
ということらしい。
[ Read More... ]