# AArch64

**AArch64**是Armv8-A架构的64位执行状态，在此状态下代码运行A64指令集，并在64位寄存器中保存地址。<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup><sup> • </sup><sup>[2](https://www.arm.com/architecture/cpu/a-profile)</sup> 这个名称指的是执行状态，而非指令集本身：在此状态下执行的指令集称为A64。<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 名称所指 | AArch64是Armv8-A的64位执行状态；A64是该状态下使用的指令集<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup><sup> • </sup><sup>[3](https://lwn.net/Articles/506148/)</sup> |
| 编码 | 定长32位指令；“64”指的是执行状态，而非指令长度<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup> |
| 寄存器 | 31个通用寄存器（X0–X30，含32位W视图）、一个零寄存器、一个专用SP；PC从不是具名寄存器<sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup> |
| 向量寄存器 | 浮点与高级SIMD（NEON）共享三十二个128位寄存器；SVE2和SME增加变长向量与矩阵<sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup><sup> • </sup><sup>[2](https://www.arm.com/architecture/cpu/a-profile)</sup> |
| 特权模型 | 四个架构定义的异常级别EL0–EL3，其中EL2和EL3为可选，EL0、EL1和EL2各有安全与非安全对应版本<sup>[5](https://www.kernel.org/doc/html/v6.8/arch/arm64/booting.html)</sup> |
| 寻址 | 64位虚拟寻址，基线物理地址空间为48位<sup>[6](https://documentation-service.arm.com/static/623c6f533b9f553dde8fd8ee?token=)</sup> |
| 内存模型 | 弱序模型，修订为多副本原子模型并配有形式化并发规范；Armv8.3-A改变了内存一致性模型<sup>[7](https://dlnext.acm.org/doi/10.1145/3158107)</sup><sup> • </sup><sup>[8](https://documentation-service.arm.com/static/663e39db9007496a66f74481?token=)</sup> |

## 概述与术语

Armv8-A支持三种指令集：A32、T32和A64。在AArch64执行状态下执行时使用A64，而AArch64是随Armv8-A架构引入的。<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup><sup> • </sup><sup>[8](https://documentation-service.arm.com/static/663e39db9007496a66f74481?token=)</sup> 当Arm公开披露ARMv8时，它描述了两种主要执行状态——AArch64和AArch32，其中AArch64引入A64用于64位处理，而AArch32保留了现有的ARM指令集；包括TrustZone、虚拟化和NEON高级SIMD在内的ARMv7特性得到保留或扩展。<sup>[9](https://web.archive.org/web/20190101024118/https:/www.arm.com/about/newsroom/arm-discloses-technical-details-of-the-next-version-of-the-arm-architecture.php)</sup>

这个名称本身引发了争议。在Linux内核社区中，许多开发者更倾向于“ARMv8”，认为“AArch64”既冗余又缺乏信息量，因为它是ARMv8的64位执行状态名称，而非架构本身的名称。<sup>[3](https://lwn.net/Articles/506148/)</sup>

## 架构设计

**寄存器。** AArch64提供31个通用寄存器，每个都可用作64位的X寄存器（X0–X30）或32位的W寄存器（W0–W30），其中W0是X0的低32位。<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup> PC从不能作为具名寄存器访问；它的使用隐含在PC相对加载和地址生成中。<sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup> 栈指针可作为加载和存储的基地址，并可用于有限的一组数据处理指令，但它不是常规通用寄存器。<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup>

**编码与指令形式。** A64是定长指令集，所有指令均为32位，从底层开始就为64位和32位原生数据类型设计，寄存器字段位于固定的连续位置。<sup>[6](https://documentation-service.arm.com/static/623c6f533b9f553dde8fd8ee?token=)</sup><sup> • </sup><sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup> 它舍弃了若干ARMv7机制：大多数指令的通用谓词执行不再提供（没有T32的IT指令的等价物），多寄存器LDM/STM指令被移除，代之以成对加载/存储LDP/STP。<sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup><sup> • </sup><sup>[10](https://events.static.linuxfound.org/images/stories/pdf/lcna_co2012_marinas.pdf)</sup>

**异常级别。** AArch64异常模型定义了四个异常级别，其中EL2和EL3在架构上为可选：EL0（用户）、EL1（内核）、EL2（虚拟机监控器）和EL3（安全监控器）。EL0、EL1和EL2各有安全与非安全对应版本；EL3是最高优先级级别，仅存在于安全模式中。<sup>[5](https://www.kernel.org/doc/html/v6.8/arch/arm64/booting.html)</sup> 在Linux启动模型中，宿主操作系统必须在EL2中启动以支持虚拟化，然后切换到EL1——默认的内核执行模式。<sup>[10](https://events.static.linuxfound.org/images/stories/pdf/lcna_co2012_marinas.pdf)</sup> 系统寄存器名称以_ELx结尾，后缀指明访问该寄存器所需的最低特权级。<sup>[1](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)</sup> 在AArch32和AArch64之间切换执行状态需要异常进入或退出，因此AArch32与AArch64代码之间没有直接的互操作。<sup>[11](https://lwn.net/Articles/505682/)</sup>

## 向量与扩展架构

浮点与高级SIMD（NEON）共享一个扩展至三十二个128位寄存器的寄存器堆。<sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup> 在这一定长向量基础之上，Armv9-A支持可伸缩向量扩展（SVE2）和可伸缩矩阵扩展（SME），它们支持变长向量和矩阵，并支持向量长度无关的编程。<sup>[2](https://www.arm.com/architecture/cpu/a-profile)</sup> A系列架构还包括内存标记扩展（MTE）。<sup>[2](https://www.arm.com/architecture/cpu/a-profile)</sup>

版本化扩展记录了架构的成长轨迹。Armv8.1-A增加了原子内存访问指令、有限顺序区域、更大的虚拟机标识符，以及面向AArch64的虚拟化宿主扩展；Armv8.2-A增加了52位地址支持、FP16数据处理和统计性能分析。<sup>[8](https://documentation-service.arm.com/static/663e39db9007496a66f74481?token=)</sup> Armv8.3-A增加了指针认证、嵌套虚拟化、高级SIMD复数支持，并改变了AArch64的内存一致性模型。<sup>[8](https://documentation-service.arm.com/static/663e39db9007496a66f74481?token=)</sup>

## 内存模型与并发

AArch64采用带显式屏障的弱序内存模型，与x86-64的TSO（强）模型和RISC-V的RVWMO弱模型形成对比。<sup>[12](https://datafield.dev/assembly-language/part-03/chapter-19/)</sup> A64通过显式同步指令来解决这一问题：加载-获取（LDAR）和存储-释放（STLR）将加载或存储与内存屏障结合，简化了临界区，这些释放一致性（RCsc）访问减少了对显式内存屏障的需求。<sup>[6](https://documentation-service.arm.com/static/623c6f533b9f553dde8fd8ee?token=)</sup><sup> • </sup><sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup>

该模型还经过了形式化规范与修订。最初的ARMv8模型是非多副本原子的，意味着写入可能在对所有线程可见之前先对某些其他线程可见，但这一行为并未在生产实现中被利用；因此架构被修订为多副本原子模型，具有更直接的依赖概念，以及一个具有操作式与公理化两种版本、且两者已被证明等价的形式化并发模型。<sup>[7](https://dlnext.acm.org/doi/10.1145/3158107)</sup>

## 与x86-64和RISC-V的比较

三大64位ISA家族最显著的差异在于编码、寄存器数量与同步风格。AArch64指令固定为4字节；x86-64指令从1到15字节不等；RISC-V使用32位指令加16位压缩指令。AArch64提供31个通用寄存器（X0–X30）加零寄存器XZR，而x86-64为16个，RISC-V RV64GC为32个。对于原子操作，AArch64使用LDAXR/STLXR（Armv8.1增加了原子内存访问指令），x86-64使用LOCK前缀，RISC-V提供LR/SC和AMO指令。<sup>[12](https://datafield.dev/assembly-language/part-03/chapter-19/)</sup><sup> • </sup><sup>[8](https://documentation-service.arm.com/static/663e39db9007496a66f74481?token=)</sup> AArch64还遵循加载-存储模型，算术运算在寄存器上进行，内存只能通过显式加载和存储访问，而x86-64允许许多算术指令直接使用内存操作数；定宽编码相对于x86-64的变长模式简化了解码。<sup>[13](https://arxiv.org/pdf/2604.18896)</sup>

实证比较是近年才出现的。一项同行评审研究——对两种指令集最早进行的深入实证比较之一——分析了用GCC 9.2和12.2编译、面向Armv8-A和RISC-V rv64g标量子集的基准测试的指令计数和编码大小。<sup>[14](https://dl.acm.org/doi/fullHtml/10.1145/3624062.3624233)</sup> 2025年RISC-V Summit Europe的一场报告比较了AArch64 SVE2与使用256位向量的RISC-V RV64GCV，包括指令计数比较。<sup>[15](https://riscv-europe.org/summit/2025/media/proceedings/2025-05-15-RISC-V-Summit-Europe-12h30-ARRAS-slides.pdf)</sup>

## 实现与生态

软件生态在披露后迅速形成。2012年11月提出了AArch64的LLVM后端，将该架构描述为类RISC、具有固定32位指令宽度和31个通用寄存器。<sup>[16](https://www.llvm.org/devmtg/2012-11/Northover-AArch64.pdf)</sup> 最初的AArch64 Linux内核移植实现了修订后的四级异常模型和A64指令集，后者具有更大的寄存器堆和新的FP/SIMD指令。<sup>[11](https://lwn.net/Articles/505682/)</sup> AArch64上的64位Linux使用LP64数据模型，由已定义的A64-LP64过程调用标准支持。<sup>[6](https://documentation-service.arm.com/static/623c6f533b9f553dde8fd8ee?token=)</sup>

[形式化验证](https://www.edgepedia.org/zh/formal-verification)紧随芯片之后。研究者构建了ARMv8-A、RISC-V和MIPS的严格语义模型，其完整程度足以启动Linux、FreeBSD或seL4；ARMv8-A模型从Arm内部的权威定义自动翻译而来，并针对Arm架构验证套件进行了测试。<sup>[17](https://alastairreid.github.io/papers/popl19-isasemantics.pdf)</sup>

在服务器端，据报道2025年10月AWS的Graviton4在使用Meta的Llama 3.1 8B模型进行LLM测试时，词元吞吐量比AMD的EPYC处理器高168%，性能比Intel的Xeon芯片高162%。<sup>[18](https://www.theregister.com/on-prem/2025/10/28/clouds-new-performance-leader-arm-beats-x86/417871)</sup>

## 数字一览

- **31、16、32**个通用寄存器：分别为AArch64（X0–X30，XZR为零寄存器）、x86-64和RISC-V RV64GC。<sup>[12](https://datafield.dev/assembly-language/part-03/chapter-19/)</sup>
- 每条AArch64指令**4字节**，而x86-64为1–15字节，RISC-V为32位加16位压缩。<sup>[12](https://datafield.dev/assembly-language/part-03/chapter-19/)</sup>
- **32 × 128位**共享浮点/NEON向量寄存器。<sup>[4](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)</sup>
- **48位**基线物理地址空间（在64位虚拟寻址下）。<sup>[6](https://documentation-service.arm.com/static/623c6f533b9f553dde8fd8ee?token=)</sup>
- **168% / 162%**：2025年10月测试中Graviton4的Llama 3.1 8B词元吞吐量相对AMD EPYC和Intel Xeon的优势。<sup>[18](https://www.theregister.com/on-prem/2025/10/28/clouds-new-performance-leader-arm-beats-x86/417871)</sup>
- **36% / 46%**：Arm声称的Cortex-X925相对Cortex-X4的单线程峰值（Geekbench 6.2）和AI性能（Phi3的首词元生成时间）提升。<sup>[19](https://newsroom.arm.com/blog/armv9-cpus-consumer-devices)</sup>

## 近期发展

2024年Arm发布了Cortex-X925（此前代号Blackhawk），Arm称其带来了Cortex-X历史上最大的年度性能提升，并具备可流片的3nm物理实现。<sup>[19](https://newsroom.arm.com/blog/armv9-cpus-consumer-devices)</sup> 配套的CSS for Client平台声称计算和图形性能提升超过30%，AI推理比上一代平台快59%。<sup>[20](https://newsroom.arm.com/news/arm-css-for-client)</sup> Arm的KleidiAI软件提供支持NEON、SVE2和SME2的计算内核。<sup>[20](https://newsroom.arm.com/news/arm-css-for-client)</sup>

规范本身持续维护并标注日期。2026年9月的A64基础指令版本记录了SMSTART——MSR（立即数）的别名，用于启用对流式SVE模式和SME架构状态的访问，表明SME已进入维护中的规范，随附的发布说明涵盖了原子比较交换系列（CAS、CASA、CASAL、CASL及其字节变体）。<sup>[21](https://support.arm.com/documentation/ddi0602/2026-09/Base-Instructions)</sup><sup> • </sup><sup>[22](https://support.arm.com/documentation/111110/2026-09/)</sup>

## References

1. [Learn the architecture – Armv8-A Instruction Set Architecture, Arm](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf)
2. [A-Profile Architectures, Arm](https://www.arm.com/architecture/cpu/a-profile)
3. [Supporting 64-bit ARM systems, LWN.net](https://lwn.net/Articles/506148/)
4. [ARMv8 Instruction Set Overview, Arm](https://www.cs.princeton.edu/courses/archive/spring24/cos217/reading/ArmInstructionSetOverview.pdf)
5. [Booting AArch64 Linux, The Linux Kernel documentation](https://www.kernel.org/doc/html/v6.8/arch/arm64/booting.html)
6. [Porting to 64-bit Arm – White Paper, Arm](https://documentation-service.arm.com/static/623c6f533b9f553dde8fd8ee?token=)
7. [Simplifying ARM concurrency: multicopy-atomic axiomatic and operational models for ARMv8, Pulte et al., ACM](https://dlnext.acm.org/doi/10.1145/3158107)
8. [Understanding the Armv8.x and Armv9.x extensions guide, Arm](https://documentation-service.arm.com/static/663e39db9007496a66f74481?token=)
9. [ARM Discloses Technical Details Of The Next Version Of The ARM Architecture (archived), Arm](https://web.archive.org/web/20190101024118/https:/www.arm.com/about/newsroom/arm-discloses-technical-details-of-the-next-version-of-the-arm-architecture.php)
10. [Linux on AArch64 ARM 64-bit Architecture, LinuxCon North America 2012](https://events.static.linuxfound.org/images/stories/pdf/lcna_co2012_marinas.pdf)
11. [AArch64 Linux kernel port, LWN.net](https://lwn.net/Articles/505682/)
12. [Chapter 19: x86-64 vs. ARM64 Comparison, datafield.dev](https://datafield.dev/assembly-language/part-03/chapter-19/)
13. [Assembly Language comparison paper, arXiv](https://arxiv.org/pdf/2604.18896)
14. [An Empirical Comparison of the RISC-V and AArch64 Instruction Sets, ACM](https://dl.acm.org/doi/fullHtml/10.1145/3624062.3624233)
15. [RISC-V vs. AArch64, RISC-V Summit Europe 2025 slides](https://riscv-europe.org/summit/2025/media/proceedings/2025-05-15-RISC-V-Summit-Europe-12h30-ARRAS-slides.pdf)
16. [AArch64: ARM's 64-bit architecture, LLVM Developers' Meeting 2012](https://www.llvm.org/devmtg/2012-11/Northover-AArch64.pdf)
17. [ISA Semantics for ARMv8-A, RISC-V, and CHERI-MIPS, Reid et al., POPL'19](https://alastairreid.github.io/papers/popl19-isasemantics.pdf)
18. [Cloud's new performance leader: Arm beats x86, The Register](https://www.theregister.com/on-prem/2025/10/28/clouds-new-performance-leader-arm-beats-x86/417871)
19. [New Armv9 CPUs for Accelerating AI on Mobile and Beyond, Arm Newsroom](https://newsroom.arm.com/blog/armv9-cpus-consumer-devices)
20. [Redefining Mobile Experiences with AI-Optimized Arm CSS for Client and New Arm Kleidi Software, Arm Newsroom](https://newsroom.arm.com/news/arm-css-for-client)
21. [Arm A-profile A64 Instruction Set Architecture – Base Instructions (2026-09), Arm](https://support.arm.com/documentation/ddi0602/2026-09/Base-Instructions)
22. [Arm A64 Instruction Set Release Note for FAT A-profile architecture (2026-09), Arm](https://support.arm.com/documentation/111110/2026-09/)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Processors & processor engineering › Instruction set architectures › RISC family instruction sets

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/aarch64

English original: https://www.edgepedia.org/aarch64
