[zz] Big endian vs little endian

Suppose the variable x of type int and at address 0x100 has a hexadecimal value of 0x01234567. The ordering of the bytes within the address range 0x100 through 0x103 depends onthe type of machine:

 

Note that inthe word 0x01234567 the high-order byte has hexadecimal value 0x01, while thelow-order byte has value 0x67.

 

 

posted @ 2010-05-25 20:19  bettermanlu  阅读(239)  评论(0编辑  收藏  举报