About big endian and little endian

Category: , By 人生有夢,築夢踏實
ref :http://www.debian.org/ports/mips/

How to identify which endianness are you used. You can to see your toolchain on folder.
The big endian mode that file name should be "misp??-gcc"; the little endian mode that file name should be "mips??el-gcc" or "mips??-elf-gcc".

Data : 0x12345678
Address : 0x00 0x01 0x02 0x03
Big endian : 0x12 0x34 0x56 0x78
Little endian : 0x78 0x56 0x34 0x12
 

0 comments so far.

Something to say?

ARCHIVES