Re: [徵求] 有人對 big-endian, little-endian 了렠…

看板Electronics作者 (motor447)時間18年前 (2008/01/04 09:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
會自動轉; endian 的設定通常由 CPU 的接腳線路決定, CPU 在某根接腳拉到 1 或 0 決定 big 還是 little, 所以可能要去跳線才能改變 endian; 因為 big 或 little 會影響 CPU 在 booting 抓程式的順序, 一旦 endian 錯誤, 程式是跑不起來的; 有的 CPU 好像可以從 ICE 去改 endian... ※ 引述《kasl (感情是個難解的結)》之銘言: : 因為工作需要 請問有人對 : big-endian, little-endian 有了解的嗎 : 假設有個 0x11223344 在 memory 裡會是 : little-endian big-endian : 0x44332211 0x11223344 : 我是想請問的是 當 big-endian mode 我要讀一筆資料從 memory : 那 memory controller 會自動把數值轉成 0x11223344 再給我嗎 : 同理 如果我寫 0x44332211 那 memory controller 會轉成 0x44332211 : 再存進去嗎 : 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.130.188.178
文章代碼(AID): #17VOzYFs (Electronics)
文章代碼(AID): #17VOzYFs (Electronics)