共1条
1/1 1 跳转至页
ARM的大端和小端 - 网上找到的
First thing I'd say is don't be confused by "Big Endian" on ARM. There
aren't 2 endian-nesses available with ARM, there's 4:
1. little endian with devices connected little endian
2. little endian with devices connected big endian
3. big endian with devices connected little endian
4. big endian with devices connected big endian
Only (1) and (4) are true little/big endian. (2) and (3) are fake.
Each one of these needs handling, since I believe most people refer to (3)
as big endian, which is, according to the ARM manuals, incorrect. In other
words, you can't just take as assabet, switch the endian bit in the control
register and say "I have a big endian machine".
Why do these have to be handled differently? Each one affects the way words
and bytes are accessed in peripherals, and may or may not result in a greater
amount of code to sort out the endian issues.
It is debatable whether the (3) is really worth the effort due to the code
that gets added into critical functions.
Ok, here's why. The following describe the layout of bytes that ARM
processors expect on the data bus. A word is always D31-D0 = bit 31 - bit 0.
关键词: 大端 小端 网上 找到
共1条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
vscode+cmake搭建雅特力AT32L021开发环境被打赏30分 | |
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 |