write a macro to judge big endian or little endian
摘要:
Big endian means the most significant byte stores first in memory. int a=0x01020304, if the cpu is big endian, data are store 01 02 03 04 in memory in increasing address.Below is a simple code to make the judgement.//execute the following cmd on the command line, //Judge the output, 1 for little end 阅读全文
posted @ 2013-07-09 21:07 Torstan 阅读(413) 评论(0) 推荐(0) 编辑