# 指令集架构比较

指令集架构（instruction set architecture，ISA）是处理器与其软件之间的软件可见契约，定义了任何符合规范的实现都必须提供的指令、寄存器、异常模型和内存排序规则。当今通用计算领域占主导地位的三种架构是 x86（包括其 64 位的 AMD64 和 Intel 64 形式）、Arm（包括其 AArch64/A64 形式）以及较新的开放标准 RISC-V，它们最显著的差异在于编码格式、可扩展性和许可模式，而非可达到的性能。

| 关键事实 | 详情 |
|---|---|
| x86/Intel 64 文档 | 《Intel 64 和 IA-32 软件开发人员手册》涵盖指令集参考（第 2 卷，A–Z）以及系统编程指南，后者涉及内存管理、VMX 虚拟化、Intel VT 和 SGX<sup>[1](https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html?wapkw=intel+64)</sup> |
| AMD64 64 位模式 | 重新编译的 64 位代码获得 16 个通用寄存器、16 个 XMM/YMM 寄存器、64 位虚拟地址空间和 RIP 相对寻址；传统 SSE 二进制程序可在传统模式和兼容模式下不加修改地运行<sup>[2](https://docs.amd.com/api/khub/documents/sfvvekC9mDflu6vd3R0NXA/content)</sup> |
| Arm A64 | 定长 32 位指令集，所有通用寄存器均为 64 位；Armv8-A 还保留 32 位执行状态以兼容 v7、v6 和 v5<sup>[3](https://developer.arm.com/-/media/Files/pdf/graphics-and-multimedia/Porting%20to%20ARM%2064-bit.pdf)</sup><sup> • </sup><sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Introducing%20the%20Arm%20architecture.pdf?revision=0b6b67ea-edd7-4975-b23c-d4904ac0cb35)</sup> |
| RISC-V 结构 | 一系列基础 ISA（RV32I、RV64I 等）加上可选的标准扩展：M（乘除）、A（原子操作）、F 和 D（浮点）、C（16 位压缩指令）<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup> |
| RISC-V 许可 | 该 ISA 在宽松许可证下免费开放；已批准规范由 RISC-V 国际基金会维护<sup>[6](https://riscv.org/about/faq/)</sup> |
| RISC 与 CISC 的研究发现 | 一项针对 ARM 和 x86 的测量研究发现，指令数量、能耗和功耗在一阶近似上与 ISA 无关；微架构主导性能<sup>[7](https://course.ece.cmu.edu/~ece742/S23/paper_pdfs/Power_struggles_Revisiting_the_RISC_vs._CISC_debate_on_contemporary_ARM_and_x86_architectures.pdf)</sup> |
| 代码密度 | 压缩 RISC 指令集（ARM Thumb、MIPS16）相对于其未压缩的起点将代码大小减少了约 25–30%<sup>[8](https://docs.riscv.org/reference/isa/_attachments/riscv-unprivileged.pdf)</sup> |

## 架构规范涵盖什么

ISA 规范是一份功能契约，而非芯片设计。Arm 文档将架构描述为规定了指令集及每条指令的编码、寄存器组及其大小和初始状态、带特权级别的异常模型、管理访问排序和缓存行为的内存模型，以及调试、跟踪和性能分析接口。处理器实际如何构建，包括流水线长度、缓存大小和每条指令的周期数，属于微架构，被有意留作开放<sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Introducing%20the%20Arm%20architecture.pdf?revision=0b6b67ea-edd7-4975-b23c-d4904ac0cb35)</sup>。在架构上合规的软件可在同一架构的不同实现上不加修改地运行；Arm 以 Cortex-A53 和 Cortex-A72 为例——前者是顺序 8 级核心，后者是乱序 15 级以上核心——说明它们是同一 Armv8-A 架构的两种微架构<sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Introducing%20the%20Arm%20architecture.pdf?revision=0b6b67ea-edd7-4975-b23c-d4904ac0cb35)</sup>。

契约的规模因架构而异。Intel 的合订手册多达十卷，包含完整的 A–Z 指令参考和系统编程指南，后者涵盖内存管理、任务管理、多处理器支持、系统管理模式、虚拟机扩展和软件保护扩展<sup>[1](https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html?wapkw=intel+64)</sup>。每一代新的 Intel 处理器都相对于前代增强了软件可见架构，因此规范积累了几十年的特性<sup>[9](https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-vol-3b-part-2-manual.pdf)</sup>。

## 主要架构

**x86（IA-32、Intel 64、AMD64）。** x86 家族是桌面和服务器计算中长期存在的 CISC 架构。其 64 位形式最初由 AMD 以 AMD64 之名开发，Intel 64 与之对应，保持了完全的向后兼容性：现有的 SSE 二进制程序可在传统模式和兼容模式下不加修改地运行，支持程度与传统 x86 相同<sup>[2](https://docs.amd.com/api/khub/documents/sfvvekC9mDflu6vd3R0NXA/content)</sup>。为 64 位模式重新编译的代码获得八个额外的通用寄存器（共 16 个）、八个额外的 XMM/YMM 寄存器、64 位宽的寄存器、64 位虚拟地址空间和 RIP 相对寻址<sup>[2](https://docs.amd.com/api/khub/documents/sfvvekC9mDflu6vd3R0NXA/content)</sup>。Intel 继续通过《指令集扩展编程参考》和 Intel APX 架构规范等文件扩展编码，后者扩展了 Intel 架构的编码和语义<sup>[1](https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html?wapkw=intel+64)</sup>。

**Arm。** Arm 架构按版本开发，每一版都在前一版基础上构建，并分为三种配置：A 配置面向运行 Linux 或 Windows 等复杂操作系统的应用，R 配置面向实时系统，M 配置面向最小、最低功耗的微控制器设备<sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Introducing%20the%20Arm%20architecture.pdf?revision=0b6b67ea-edd7-4975-b23c-d4904ac0cb35)</sup>。Armv8-A 是使该架构转向 64 位的重大里程碑，同时仍支持传统软件的 32 位执行<sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Introducing%20the%20Arm%20architecture.pdf?revision=0b6b67ea-edd7-4975-b23c-d4904ac0cb35)</sup>。其 AArch64 状态使用 A64 指令集，从一开始就设计为干净的定长指令集，每条指令均为 32 位，通用寄存器全部为 64 位；写入 32 位 W 寄存器会将对应的 64 位 X 寄存器的高半部分清零<sup>[3](https://developer.arm.com/-/media/Files/pdf/graphics-and-multimedia/Porting%20to%20ARM%2064-bit.pdf)</sup>。在 AArch32（较旧的 32 位执行状态）下，该架构包含 A32（定长 32 位指令）和 T32（16 位及 16/32 位混合 Thumb 指令）<sup>[10](https://developer.arm.com/community/arm-community-blogs/b/operating-systems-blog/posts/arm-neon-programming-quick-reference)</sup>。Arm 将其架构规范授权给构建合规芯片的合作伙伴，并声称超过 3500 亿台设备包含基于 Arm 的芯片<sup>[11](https://www.arm.com/architecture)</sup>。合作伙伴既可以获得使用 Arm 设计的 Cortex 核心的授权，也可以依据架构规范自行设计微架构，但须通过 Arm 强制要求的合规测试套件<sup>[12](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/innovation-on-arm-cortex-processors)</sup>。

**RISC-V。** RISC-V（发音为“risk-five”）是一种基于精简指令集计算机原则的开放标准 ISA，得名于加州大学伯克利分校继 RISC-I、RISC-II、SOAR 和 SPUR 之后的第五个主要 RISC 设计<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup>。其决定性选择是模块化：一个 RISC-V ISA 由每个实现中都存在的小型基础整数 ISA 加上可选扩展组成。基础部分仅包含整数运算、加载、存储和控制流，被选定为足以支撑编译器、汇编器、链接器和操作系统的最小目标<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup>。共有四种基础 ISA，以寄存器宽度和寄存器数量区分；两种主要变体 RV32I 和 RV64I 分别提供 32 位和 64 位地址空间<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup>。标准扩展增加了整数乘除（M）、原子读-改-写内存操作（A）、带专用浮点寄存器的单精度（F）和双精度（D）浮点，以及 16 位压缩指令（C）<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup>。与将 ISA 视为随指令添加而改变版本的单一实体的架构不同，RISC-V 保持基础和每个已批准的标准扩展随时间不变，并将新指令作为进一步的可选扩展分层添加<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup>。该 ISA 在宽松许可证下免费开放，不过构建完整实现需要额外的知识产权，可能涉及费用<sup>[6](https://riscv.org/about/faq/)</sup>。

## 模块化、配置与兼容性

RISC-V 的灵活性带来了旧架构所没有的问题：随着标准扩展集庞大且不断增长，再加上用户自定义扩展，可能的 ISA 组合数量爆炸式增长，二进制软件生态系统无法全部覆盖<sup>[13](https://docs.riscv.org/reference/profiles/rva20-rvi20-rva22/_attachments/RISC-V_Profiles.pdf)</sup>。[RISC-V 国际基金会](https://www.edgepedia.org/zh/risc-v-international)通过架构配置来解决这一问题，即一代实现所保证的强制和可选扩展的命名集合。RVA23 配置系列面向 64 位应用处理器；其用户模式配置 RVA23U64 将 RV64I 设为强制的小端基础，并在 RVA23 中新增将 V 向量扩展设为强制，同时取消标量加密作为选项，转而采用速度大幅提升的向量加密<sup>[14](https://docs.riscv.org/reference/rva23/rva23-profiles.html)</sup>。这些配置的既定目的是让面向二进制软件市场的供应商保持一致，使软件可以依赖共同的功能集；没有这种一致性，即使某个供应商实现了某项功能，二进制发行版也不会使用它<sup>[15](https://docs.riscv.org/reference/rva23/rva-profile-overview-body.html)</sup>。另一个独立的 RVB23 配置系列服务于运行从源码构建的富操作系统的定制 64 位应用处理器，在这种场景下单一二进制接口明确不是目标<sup>[16](https://docs.riscv.org/reference/rvb23/_attachments/rvb23-profile.pdf)</sup>。

扩展机制还为实现者保留了编码空间。基础 RV32I 编码使用 11 个主操作码加 3 个保留，最多留出 18 个供扩展使用；RV64I 使用 13 个加 3 个保留，最多留出 16 个<sup>[17](https://docs.riscv.org/reference/isa/v20240411/_attachments/riscv-unprivileged.pdf)</sup>。编码空间分为标准、保留和自定义三类，自定义编码永久保留给供应商特定的非标准扩展<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup>。

## 指令编码与代码密度

编码格式是三者之间最明显的可观察差异之一。A64 是定长的：所有指令均为 32 位，寄存器字段位于固定的连续位置<sup>[3](https://developer.arm.com/-/media/Files/pdf/graphics-and-multimedia/Porting%20to%20ARM%2064-bit.pdf)</sup><sup> • </sup><sup>[18](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/the-a64-isa-and-compilers)</sup>。x86 使用变长指令。RISC-V 的基础是定长 32 位，但编码方案从一开始就为基于自然对齐的 16 位块的变长扩展而设计：基础对齐约束 IALIGN 为 32 位，由压缩扩展放宽至 16 位，而最大指令长度 ILEN 对于仅含基础的实现为 32 位<sup>[8](https://docs.riscv.org/reference/isa/_attachments/riscv-unprivileged.pdf)</sup>。

RISC-V 规范记录了压缩指令集背后的历史。20 世纪 80 年代的早期 RISC ISA 选择性能优先于代码大小，ARM 和 MIPS 后来增加了 16 位压缩变体，将代码大小减少约 25–30%，使代码比 80x86 的代码更小；由于那些 ISA 没有预留操作码空间，压缩指令集不得不作为独立的、不兼容的 ISA 来开发，使编译器和工具复杂化<sup>[8](https://docs.riscv.org/reference/isa/_attachments/riscv-unprivileged.pdf)</sup>。RISC-V 则预留了操作码空间，使 C 扩展可以作为基础之上的简单层添加<sup>[8](https://docs.riscv.org/reference/isa/_attachments/riscv-unprivileged.pdf)</sup>。

## ISA 决定性能和效率吗？

传统的 RISC 对 CISC 框架认为，简单、定长的指令集天生比复杂、变长的指令集更快或更节能。对真实硬件的测量研究并不支持这一框架。一项详细研究比较了 ARM 和 x86 平台在 26 种工作负载和 200 多项指标上的表现，发现不同实现之间的平均周期数差距达到约 2.5 倍，但指令数量和指令组合在一阶近似上与 ISA 无关，性能差异来自与 ISA 无关的微架构差异，能耗同样与 ISA 无关；作者得出结论：在当今成熟的微处理器设计领域，ISA 是 RISC 还是 CISC 基本无关紧要<sup>[7](https://course.ece.cmu.edu/~ece742/S23/paper_pdfs/Power_struggles_Revisiting_the_RISC_vs._CISC_debate_on_contemporary_ARM_and_x86_architectures.pdf)</sup>。

能耗数据在指令层面指向同一方向。加州大学伯克利分校关于能耗暴露指令集的研究指出，当简单的 RISC 处理器执行一次整数加法时，加法器电路本身仅消耗约 5% 的总能量；其余消耗在缓存阵列、TLB、寄存器堆、流水线寄存器和控制逻辑上，这些结构的成本在很大程度上与 ISA 无关<sup>[19](https://scale.eecs.berkeley.edu/eeisa/index.html)</sup>。

ISA 选择确实有可测量影响的领域是专用化和模拟比较。一项基于 Gem5 的 ISA 性能影响调查报告称，在这些模拟中 ARM ISA 相比 RISC-V 和 x86 表现出更优的性能和更低的功耗<sup>[20](https://openurl.ebsco.com/contentitem/doi%3A10.3969%2Fj.issn.1007-130X.2025.11.005?id=ebsco%3Adoi%3A10.3969%2Fj.issn.1007-130X.2025.11.005&sid=ebsco%3Aplink%3Acrawler)</sup>。添加定制指令可以直接带来回报：一项对 OpenRISC 的研究定制了 ISA 及其 LLVM 后端，报告在向量密集型代码上平均能效提升 59%，其他代码提升 41%，代价是在四核集群上增加 2.3% 的面积和 18% 的功耗<sup>[21](https://cris.unibo.it/handle/11585/545775)</sup>。这正是 RISC-V 设计者为模块化提出的论据：随着能耗问题推动专用化，一个小的强制基础加上可选的领域扩展，使实现只需包含其市场所需的内容<sup>[5](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)</sup>。

## 许可与生态系统模式

三种架构在如何触达实现者方面也有所不同。Arm 将其架构规范和知识产权授权给合作伙伴，由后者构建合规芯片；其许可涵盖 Arm Total Access 和 Flexible Access 等订阅模式，费用通常在流片时而非前期支付<sup>[11](https://www.arm.com/architecture)</sup><sup> • </sup><sup>[22](https://developer.arm.com/arm-website/home/products/flexible-access)</sup>。x86 由 Intel 和 AMD 依据各自的专有规范实现。RISC-V 的规范由 RISC-V 国际基金会的贡献成员开发、批准和维护，免费公开可用，已批准的规范永不修订；必要的更改通过后续扩展进行<sup>[23](https://riscv.org/specifications/ratified/)</sup>。实际结果是任何人都可以设计 RISC-V 芯片，而广泛的应用级兼容性通过 RVA23 等配置来提供，而非通过单一供应商的控制<sup>[24](https://riscv.org/blog/ratified-specifications-library/)</sup>。

## References

1. [Intel 64 and IA-32 Architectures Software Developer Manuals, Intel](https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html?wapkw=intel+64)
2. [AMD64 Architecture Programmer's Manual, Volume 1: Application Programming, AMD](https://docs.amd.com/api/khub/documents/sfvvekC9mDflu6vd3R0NXA/content)
3. [Porting to 64-bit ARM, Arm](https://developer.arm.com/-/media/Files/pdf/graphics-and-multimedia/Porting%20to%20ARM%2064-bit.pdf)
4. [Introducing the Arm architecture, Arm](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Introducing%20the%20Arm%20architecture.pdf?revision=0b6b67ea-edd7-4975-b23c-d4904ac0cb35)
5. [Introduction, RISC-V Unprivileged ISA Specification, RISC-V International](https://docs.riscv.org/reference/isa/v20240411/unpriv/intro.html)
6. [FAQ, RISC-V International](https://riscv.org/about/faq/)
7. [Blem et al., Power struggles: Revisiting the RISC vs. CISC debate on contemporary ARM and x86 architectures](https://course.ece.cmu.edu/~ece742/S23/paper_pdfs/Power_struggles_Revisiting_the_RISC_vs._CISC_debate_on_contemporary_ARM_and_x86_architectures.pdf)
8. [The RISC-V Instruction Set Manual, Volume I: Unprivileged Architecture, RISC-V International](https://docs.riscv.org/reference/isa/_attachments/riscv-unprivileged.pdf)
9. [Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 3B, Intel](https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-vol-3b-part-2-manual.pdf)
10. [Arm Neon programming quick reference, Arm Community](https://developer.arm.com/community/arm-community-blogs/b/operating-systems-blog/posts/arm-neon-programming-quick-reference)
11. [Arm Architecture, Arm](https://www.arm.com/architecture)
12. [Innovation on Arm Cortex processors, Arm Community](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/innovation-on-arm-cortex-processors)
13. [RISC-V Profiles (RVI20, RVA20, RVA22), RISC-V International](https://docs.riscv.org/reference/profiles/rva20-rvi20-rva22/_attachments/RISC-V_Profiles.pdf)
14. [RVA23 Profiles, RISC-V International](https://docs.riscv.org/reference/rva23/rva23-profiles.html)
15. [RVA Profiles Rationale, RISC-V International](https://docs.riscv.org/reference/rva23/rva-profile-overview-body.html)
16. [RVB23 Profiles, RISC-V International](https://docs.riscv.org/reference/rvb23/_attachments/rvb23-profile.pdf)
17. [The RISC-V Instruction Set Manual, Volume I (20240411), RISC-V International](https://docs.riscv.org/reference/isa/v20240411/_attachments/riscv-unprivileged.pdf)
18. [The A64 ISA and compilers, Arm Community](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/the-a64-isa-and-compilers)
19. [Energy-Exposed Instruction Sets, UC Berkeley](https://scale.eecs.berkeley.edu/eeisa/index.html)
20. [Does the ISA really matter? A survey of simulations based on Gem5](https://openurl.ebsco.com/contentitem/doi%3A10.3969%2Fj.issn.1007-130X.2025.11.005?id=ebsco%3Adoi%3A10.3969%2Fj.issn.1007-130X.2025.11.005&sid=ebsco%3Aplink%3Acrawler)
21. [Tailoring instruction-set extensions for an ultra-low power tightly-coupled cluster of OpenRISC cores, University of Bologna](https://cris.unibo.it/handle/11585/545775)
22. [Arm Flexible Access, Arm Developer](https://developer.arm.com/arm-website/home/products/flexible-access)
23. [Ratified Specifications, RISC-V International](https://riscv.org/specifications/ratified/)
24. [We Created a Single Source for All RISC-V Specifications, RISC-V International](https://riscv.org/blog/ratified-specifications-library/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › 处理器与处理器工程 › 指令集架构 › ISA列表、比较与参考表

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/comparison-of-instruction-set-architectures

English original: https://www.edgepedia.org/comparison-of-instruction-set-architectures
