2007-02-12から1日間の記事一覧
odでint/shortで表示すると、CPU nativeのbyte orderで表示してくれることに気がついた。以下はMacBook(Intel)での結果。 1byteずつ表示した場合 > od -t x1 -A x /usr/bin/file | head -n 4 0000000 ca fe ba be 00 00 00 02 00 00 00 07 00 00 00 03 00000…
odでint/shortで表示すると、CPU nativeのbyte orderで表示してくれることに気がついた。以下はMacBook(Intel)での結果。 1byteずつ表示した場合 > od -t x1 -A x /usr/bin/file | head -n 4 0000000 ca fe ba be 00 00 00 02 00 00 00 07 00 00 00 03 00000…