共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电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】STM32cubeMX软件的使用过程中的“坑”被打赏50分 | |
新手必看!C语言精华知识:表驱动法被打赏50分 | |
【我踩过的那些坑】STM32的硬件通讯调试过程的“坑”被打赏50分 | |
【我踩过的那些坑】晶振使用的问题被打赏100分 | |
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 |