ARM 的几个重要特点
ARM 采用RISC指令集
ARM: Acorn RISC Machine; //Acorn: 公司的名字
它支持的指令比較簡單,所以功耗小、價格便宜,特別合適移動設備。
RISC 和CISC的區別:
舉例子,乘加運算,比如: y=a*b + c;
在CISC里面,有專門的乘加指令,一條指令就可以搞定;
而在RISC,有可能需要2條指令才能搞定(舉個例子而已,RISC也可能有乘加指令):
1.// T = a*b
2.// y = T+c
而CISC為了實現乘加指令,會設計專門的電路,所以比RISC的電路會復雜一些,從而可能會耗電多一些;ARM 采用統一編址體系結構
什么是統一編址?這是相對獨立編址而言的。
統一編址和獨立編址的details,可以詳細參考如下link.
統一編址:Memory-mapped I/O (MMIO)
獨立編址:port-mapped I/O (PMIO) (which is also called isolated I/O)
https://en.wikipedia.org/wiki/Memory-mapped_I/O
統一編址簡單的講,就是內存和I/O使用相同的地址空間
Memory-mapped I/O uses the same address space to address both memory and I/O devices. The memory and registers of the I/O devices are mapped to (associated with) address values.
參考如下例子,16bit的地址總線對應內存的地址分配給了RAM/ROM/GPIO/Sound controller/Video controller, 內存和外設共享相同的地址空間。
這種方式的缺點就是I/O占用了部分地址空間,導致可以分配給內存的空間減少。比如16bit的地址總線,最大可分配的內存空間為2^16=64K, 由于I/O占用了部分空間,可以分配給內存的空間就會小于64K.
獨立編址:isolated I/O, 簡單的講就是,內存和I/O使用不同的地址空間,這里不再詳細描述。ARM 采用哈佛架構
提到哈佛架構,這個得對比馮諾依曼架構
( von Neumann architecture and a Harvard architecture)
3.1 哈佛架構
The Harvard architecture is a computer architecture with physically separate storage and signal pathways for instructions and data.
就是指令(代碼段)和數據(數據段)分開存儲。
https://en.wikipedia.org/wiki/Harvard_architecture
3.2 馮諾依曼架構
Under pure von Neumann architecture the CPU can be either reading an instruction or reading/writing data from/to the memory. Both cannot occur at the same time since the instructions and data use the same bus system. In a computer using the Harvard architecture, the CPU can both read an instruction and perform a data memory access at the same time,[1] even without a cache.
指令(代碼段)和數據(數據段)共享一個總線,指令和數據不能夠同時操作。
https://en.wikipedia.org/wiki/Von_Neumann_architecture
總結
以上是生活随笔為你收集整理的ARM 的几个重要特点的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 开头是意的成语有哪些啊?
- 下一篇: LTE MIB 的发送周期