{"id":10,"date":"2012-03-18T15:06:52","date_gmt":"2012-03-18T07:06:52","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=10"},"modified":"2012-03-18T15:06:52","modified_gmt":"2012-03-18T07:06:52","slug":"big_endian%e5%92%8clittle_endian%e7%9a%84%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/10.html","title":{"rendered":"Big_Endian\u548cLittle_Endian\u7684\u8bf4\u660e"},"content":{"rendered":"<div class=\"showContent\">\n<p>\n\t\t&nbsp; &nbsp; \u8c08\u5230\u5b57\u8282\u5e8f\u7684\u95ee\u9898\uff0c\u5fc5\u7136\u7275\u6d89\u5230\u4e24\u5927CPU\u6d3e\u7cfb\u3002\u90a3\u5c31\u662fMotorola\u7684PowerPC\u7cfb\u5217CPU\u548cIntel\u7684x86\u7cfb\u5217CPU\u3002PowerPC\u7cfb\u5217\u91c7\u7528Big_Endian\u65b9\u5f0f\u5b58\u50a8\u6570\u636e\uff0c\u800cx86\u7cfb\u5217\u5219\u91c7\u7528Little_Endian\u65b9\u5f0f\u5b58\u50a8\u6570\u636e\u3002\u90a3\u4e48\u7a76\u7adf\u4ec0\u4e48\u662fBig_Endian\uff0c\u4ec0\u4e48\u53c8\u662fLittle_Endian\u5462\uff1f\n\t<\/p>\n<p>\n\t\t&nbsp; &nbsp; \u5176\u5b9eBig_Endian\u662f\u6307\u4f4e\u5730\u5740\u5b58\u653e\u6700\u9ad8\u6709\u6548\u5b57\u8282\uff08MSB\uff09\uff0c\u800cLittle_Endian\u5219\u662f\u4f4e\u5730\u5740\u5b58\u653e\u6700\u4f4e\u6709\u6548\u5b57\u8282\uff08LSB\uff09\u3002\n\t<\/p>\n<p>\n\t\t&nbsp; &nbsp; \u7528\u6587\u5b57\u8bf4\u660e\u53ef\u80fd\u6bd4\u8f83\u62bd\u8c61\uff0c\u4e0b\u9762\u7528\u56fe\u50cf\u52a0\u4ee5\u8bf4\u660e\u3002\u6bd4\u5982\u6570\u5b570x12345678\u5728\u4e24\u79cd\u4e0d\u540c\u5b57\u8282\u5e8fCPU\u4e2d\u7684\u5b58\u50a8\u987a\u5e8f\u5982\u4e0b\u6240\u793a\uff1a\n\t<\/p>\n<p>\n\t\tBig_Endian\n\t<\/p>\n<p>\n\t\t&nbsp; \u4f4e\u5730\u5740 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u9ad8\u5730\u5740\n\t<\/p>\n<p>\n\t\t&nbsp; -----------------------------------------\n\t<\/p>\n<p>\n\t\t&nbsp; +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\t<\/p>\n<p>\n\t\t&nbsp; | &nbsp; &nbsp; &nbsp;12 &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; 34 &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp;56 &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp;78 &nbsp; &nbsp; |\n\t<\/p>\n<p>\n\t\t&nbsp; +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\t<\/p>\n<p>\n\t\tLittle_Endian\n\t<\/p>\n<p>\n\t\t&nbsp; \u4f4e\u5730\u5740 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u9ad8\u5730\u5740\n\t<\/p>\n<p>\n\t\t&nbsp; -----------------------------------------\n\t<\/p>\n<p>\n\t\t&nbsp; +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\t<\/p>\n<p>\n\t\t&nbsp; | &nbsp; &nbsp; &nbsp;78 &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; 56 &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp;34 &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp;12 &nbsp; &nbsp; |\n\t<\/p>\n<p>\n\t\t&nbsp; +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\t<\/p>\n<p>\n\t\t&nbsp; &nbsp; \u4ece\u4e0a\u9762\u4e24\u56fe\u53ef\u4ee5\u770b\u51fa\uff0c\u91c7\u7528Big_Endian\u65b9\u5f0f\u5b58\u50a8\u6570\u636e\u662f\u7b26\u5408\u6211\u4eec\u4eba\u7c7b\u7684\u601d\u7ef4\u4e60\u60ef\u7684\u3002\n\t<\/p>\n<p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; \u8c08\u5230\u5b57\u8282\u5e8f\u7684\u95ee\u9898\uff0c\u5fc5\u7136\u7275\u6d89\u5230\u4e24\u5927CPU\u6d3e\u7cfb\u3002\u90a3\u5c31\u662fMotorola\u7684PowerPC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[17,18],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-Technical_literature","tag-big_endian","tag-little_endian"],"views":1262,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}