Endianness conversion in ARM
问题 How do I convert big endian to little endian in ARM? 回答1: Are you talking about ARM's endian modes, or reading something written by some other big endian processor, etc? Normally converting to/from big/little endian you swap the bytes around. So 0xABCD is 0xCDAB when viewed as a 16 bit number 0x12345678 is 0x78563412 when viewed as a 32 bit number. ARM cores armv5 and older (ARM7, ARM9, etc) have an endian mode known as BE-32, meaning big endian word invariant. armv6 and newer (mpcore, cortex