共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 跳转至页
回复
打赏帖 | |
---|---|
汽车电子中巡航控制系统的使用被打赏10分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K146】S32DS RTD 驱动环境搭建被打赏12分 | |
【分享开发笔记,赚取电动螺丝刀】【IAR】libc标注库time相关库函数使用被打赏23分 | |
LP‑MSPM0L1306开发版试用结果被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【LP-MSPM0L1306】适配 RT-Thread Nano被打赏23分 |