# 64位计算

**64位计算**指使用寄存器、地址总线和数据通路宽度均为64位的处理器架构，相比32位系统，它能让软件寻址远超以往的内存空间，并在单条指令中执行更宽的整数运算。在实践中，这一术语既涵盖硬件（如AMD64/x86-64和Arm [AArch64](https://www.edgepedia.org/zh/aarch64)等CPU），也涵盖为其构建的64位操作系统和应用程序。当今主流的桌面和服务器形态源自AMD于2003年4月随Opteron处理器推出的x86-64扩展，英特尔将其采纳为Intel 64（原名EM64T），微软则从[Windows XP](https://www.edgepedia.org/zh/windows-xp) Professional x64 Edition和[Windows Server 2003](https://www.edgepedia.org/zh/windows-server-2003) x64版本开始提供支持<sup>[1](https://ir.amd.com/financial-information/sec-filings/content/0001193125-03-020249/dex991.htm)</sup><sup> • </sup><sup>[2](https://www.intel.com/content/www/us/en/support/articles/000005898/processors.html)</sup><sup> • </sup><sup>[3](https://learn.microsoft.com/en-us/windows/desktop/DxTechArts/sixty-four-bit-programming-for-game-developers)</sup>。

| 关键事实 | 详情 |
|---|---|
| 首款64位x86 CPU | AMD Opteron，2003年4月22日推出，AMD称其为首款兼容业界标准x86架构的64位处理器<sup>[1](https://ir.amd.com/financial-information/sec-filings/content/0001193125-03-020249/dex991.htm)</sup> |
| 首款64位x86 PC处理器 | AMD Athlon 64，2003年9月<sup>[4](https://ir.amd.com/financial-information/sec-filings/content/0001193125-04-037179/d10k.htm)</sup> |
| 英特尔采纳 | 英特尔EM64T桌面处理器于2005年2月发布；自2006年最后一季度起，所有基于Core微架构的移动、桌面和服务器处理器均支持该技术<sup>[2](https://www.intel.com/content/www/us/en/support/articles/000005898/processors.html)</sup> |
| 32位地址空间 | 32位Windows上每个进程默认2 GB，启用4 GB调优后可达3 GB，在WOW64下配合LARGEADDRESSAWARE标志为4 GB<sup>[5](https://learn.microsoft.com/en-us/Windows/win32/memory/memory-limits-for-Windows-releases)</sup> |
| 64位地址空间（x64 Windows） | 在Windows 8.1和Windows Server 2012 R2及更高版本上，每个进程拥有128 TB用户模式虚拟地址空间；早期版本为8 TB<sup>[5](https://learn.microsoft.com/en-us/Windows/win32/memory/memory-limits-for-Windows-releases)</sup> |
| 物理寻址 | AMD64长模式将64位虚拟地址转换为最高52位物理地址；AArch64物理地址最高可达52位（Armv8.2-A），Cortex-A核心上通常为40或44位<sup>[6](https://www.scs.stanford.edu/~zyedidia/docs/x86/amd-manual.pdf)</sup><sup> • </sup><sup>[7](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/LearnTheArchitecture-MemoryManagement-101811_0100_00_en.pdf?revision=1fdc3375-d81c-4457-b786-04fb98557de0)</sup> |
| Windows数据模型 | LLP64：仅指针扩展为64位；整数类型和long仍为32位<sup>[8](https://learn.microsoft.com/en-us/windows/win32/winprog64/abstract-data-models)</sup> |

## 64位为何重要：地址空间

一个32位地址可以从\( 2^{32} \)个字节中选出一个，即4 GB空间。在32位Windows上，这一空间由进程和系统分割，因此32位进程默认获得2 GB用户模式虚拟地址空间；4 GB调优（4GT）选项，也称/3GB开关，可将其提升至3 GB，代价是缩小内核所占份额<sup>[5](https://learn.microsoft.com/en-us/Windows/win32/memory/memory-limits-for-Windows-releases)</sup><sup> • </sup><sup>[9](https://learn.microsoft.com/en-us/windows/win32/memory/virtual-address-space)</sup>。物理地址扩展（PAE）让32位Windows能够使用超过4 GB的物理内存，但每个32位进程仍然只能看到其有限的虚拟窗口<sup>[5](https://learn.microsoft.com/en-us/Windows/win32/memory/memory-limits-for-Windows-releases)</sup>。

一个64位地址可以从\( 2^{64} \)个字节中选出一个，但实际实现使用的位数更少。在AMD64长模式下，程序生成的虚拟地址最大为64位，分页机制将其转换为最高52位的物理地址；具体实现可能支持更少位数<sup>[6](https://www.scs.stanford.edu/~zyedidia/docs/x86/amd-manual.pdf)</sup>。首批x86-64 CPU支持48位线性地址和40位物理地址<sup>[10](https://wiki.osdev.org/AMD64)</sup>。在x64 Windows上，每个64位进程在[Windows 8.1](https://www.edgepedia.org/zh/windows-8-1)和[Windows Server 2012 R2](https://www.edgepedia.org/zh/windows-server-2012-r2)及更高版本上获得128 TB用户模式虚拟地址空间，在Windows 8及更早版本上为8 TB<sup>[5](https://learn.microsoft.com/en-us/Windows/win32/memory/memory-limits-for-Windows-releases)</sup>。

**上限一直在移动。** 凭借最初的4级分页，x86-64最多可虚拟寻址256 TiB、物理寻址64 TiB；5级分页新增的页表层级将这两个上限提升至128 PiB虚拟地址和4 PiB物理地址，并且在x86上带来56位用户空间虚拟地址。<sup>[11](https://docs.kernel.org/5.16/x86/x86_64/5level-paging.html)</sup> 在Arm方面，所有Armv8-A实现均支持48位虚拟地址，并可选用52位支持；物理地址大小由实现定义，最高52位，从Armv8.0-A的48位上限扩展至Armv8.2-A的52位<sup>[7](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/LearnTheArchitecture-MemoryManagement-101811_0100_00_en.pdf?revision=1fdc3375-d81c-4457-b786-04fb98557de0)</sup>。

## x86-64架构

AMD的设计目标是扩展现有x86指令集以实现64位内存寻址能力，而非设计全新架构，从而保持与16位和32位软件的二进制兼容性<sup>[12](https://www.anandtech.com/show/1098/5)</sup>。AMD64架构引入了长模式，包含两个子模式：64位模式，为64位系统软件和应用程序提供完整支持；兼容模式，让现有16位和32位x86应用程序无需重新编译即可在64位操作系统下运行<sup>[13](https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24593.pdf)</sup>。长模式不支持虚拟8086模式和实模式<sup>[13](https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24593.pdf)</sup>。

64位模式带来的不只是更宽的地址。重新编译的程序获得八个额外的通用寄存器（共16个）、八个额外的XMM/YMM向量寄存器、全程64位寄存器宽度、RIP相对寻址以及64位虚拟地址空间<sup>[14](https://docs.amd.com/api/khub/documents/sfvvekC9mDflu6vd3R0NXA/content)</sup>。该架构要求在进入长模式之前启用物理地址扩展（CR4.PAE=1）<sup>[15](https://docs.amd.com/api/khub/documents/sD1_QL~h4Afq2_tvzxqqSQ/content)</sup>。内存引用只有在其地址为规范地址时才有效，即在每个地址中，从第63位到最高已实现虚拟地址位之间的高位必须全为零或全为一。<sup>[16](https://docs.amd.com/api/khub/documents/68GKiN0gMEd6bMddsmhPwg/content)</sup>

## AArch64

Arm的64位状态AArch64是Armv8-A架构的一部分，该架构同时描述了32位执行状态（AArch32）和64位执行状态<sup>[17](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/arm-architecture-reference-manual-for-armv8-a-64-bit-publicly-released)</sup>。AArch64提供31个通用寄存器，每个都可用作64位X寄存器（X0至X30）或32位W寄存器（W0至W30）；写入W寄存器会将底层64位寄存器的高32位清零<sup>[18](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf?revision=af73a2a4-620d-4f86-86b0-2987dc04e154)</sup>。另有一组32个寄存器用于浮点和向量运算<sup>[18](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf?revision=af73a2a4-620d-4f86-86b0-2987dc04e154)</sup>。

## 数据模型：LLP64与LP64

转向64位并不要求将每种数据类型都变为64位宽。在32位ILP32模型中，整数类型、long和指针类型均为32位。64位Windows采用LLP64（或称P64）模型，其中仅指针扩展为64位，而整数类型和long仍为32位；这使磁盘上、网络上和内存映射文件中的数据保持相同大小，并便于移植<sup>[8](https://learn.microsoft.com/en-us/windows/win32/winprog64/abstract-data-models)</sup>。类Unix系统和AArch64编译器通常使用LP64模型，其中int为32位，但long和指针为64位；LP64和ILP32 ABI不兼容链接，因此整个程序必须使用同一ABI编译<sup>[19](https://snapshots.sourceware.org/gcc/docs/latest/gcc/AArch64-Options.html)</sup>。这一差异在实践中很重要：假定指针和整数大小相同的代码会产生指针截断缺陷，64位编译器会以C4311等警告标记此类问题<sup>[20](https://learn.microsoft.com/en-us/windows/win32/winprog64/the-tools)</sup>。

## 在64位系统上运行32位软件

**WOW64**（64位Windows上的32位Windows）是一种x86模拟器，让32位Windows应用程序无需修改即可在64位Windows上运行；它随操作系统一同提供，无需显式启用<sup>[21](https://learn.microsoft.com/en-us/windows/win32/winprog64/running-32-bit-applications)</sup>。它将32位应用程序与64位应用程序隔离，防止文件和注册表冲突：发往%systemroot%\System32的32位DLL请求会被重定向到%systemroot%\SysWOW64，32位程序则安装到Program Files (x86)<sup>[21](https://learn.microsoft.com/en-us/windows/win32/winprog64/running-32-bit-applications)</sup><sup> • </sup><sup>[22](https://learn.microsoft.com/en-us/troubleshoot/windows-server/performance/compatibility-limitations-32-bit-programs-64-bit-system)</sup>。32位进程无法加载64位DLL来执行，反之亦然<sup>[21](https://learn.microsoft.com/en-us/windows/win32/winprog64/running-32-bit-applications)</sup>。

WOW64下的性能取决于处理器。在x64上，x86指令在芯片上原生执行，因此执行速度与32位Windows相近；在[Itanium](https://www.edgepedia.org/zh/itanium)和ARM64上，涉及更多软件模拟，性能会受影响<sup>[23](https://learn.microsoft.com/en-us/windows/win32/winprog64/performance-and-memory-consumption)</sup>。WOW64为每个线程额外分配一个64位堆栈，通常为512 KB，并为自己保留一些地址空间<sup>[23](https://learn.microsoft.com/en-us/windows/win32/winprog64/performance-and-memory-consumption)</sup>。设置了IMAGE_FILE_LARGE_ADDRESS_AWARE标志的32位应用程序在WOW64下获得4 GB虚拟地址空间，未设置则为2 GB<sup>[23](https://learn.microsoft.com/en-us/windows/win32/winprog64/performance-and-memory-consumption)</sup>。

64位Windows不能运行的两类东西是16位应用程序和32位驱动程序。64位Windows上的句柄有32个有效位，因此无法为16位程序截断，后者会以ERROR_BAD_EXE_FORMAT失败；64位Windows的所有驱动程序都必须是64位版本<sup>[21](https://learn.microsoft.com/en-us/windows/win32/winprog64/running-32-bit-applications)</sup><sup> • </sup><sup>[3](https://learn.microsoft.com/en-us/windows/desktop/DxTechArts/sixty-four-bit-programming-for-game-developers)</sup>。

## 采纳历史

AMD于2002年2月7日向微软交付了首台x86-64机器，2003年4月9日微软宣布为Opteron和[Athlon 64](https://www.edgepedia.org/zh/athlon-64)提供Windows XP和Windows Server 2003的原生64位版本<sup>[24](https://www.microsoft.com/en-us/windows-server/blog/2005/04/05/windows-server-2003-sp1-and-x64-editions-a-historical-perspective)</sup>。AMD的10-K文件将Opteron（2003年4月）描述为其首款面向服务器和工作站的64位处理器，将Athlon 64（2003年9月）描述为首款兼容Windows、基于x86架构的64位PC处理器，两者均设计为可同时运行32位和64位应用程序<sup>[4](https://ir.amd.com/financial-information/sec-filings/content/0001193125-04-037179/d10k.htm)</sup>。英特尔以EM64T回应：到2005年2月，它已出货五款具备64位寻址能力的桌面处理器，并计划在所有新推出的桌面处理器系列（包括Celeron D）中采用EM64T<sup>[25](https://www.intel.com/pressroom/archive/releases/2005/20050221comp.htm)</sup>。自2006年最后一季度起，所有基于英特尔Core微架构的移动、桌面和服务器处理器均支持该技术<sup>[2](https://www.intel.com/content/www/us/en/support/articles/000005898/processors.html)</sup>。微软当前的64位操作系统包括Windows 10、Windows 11和Windows Server 2019及更高版本；Windows Server 2008 R2及更高版本仅提供64位版本，Windows 11仅提供64位或ARM64版本<sup>[3](https://learn.microsoft.com/en-us/windows/desktop/DxTechArts/sixty-four-bit-programming-for-game-developers)</sup>。

## References

1. [AMD 8-K, July 16, 2003 (Opteron introduction)](https://ir.amd.com/financial-information/sec-filings/content/0001193125-03-020249/dex991.htm)
2. [What Is Intel Extended Memory 64 Technology?, Intel](https://www.intel.com/content/www/us/en/support/articles/000005898/processors.html)
3. [64-bit programming for Game Developers, Microsoft Learn](https://learn.microsoft.com/en-us/windows/desktop/DxTechArts/sixty-four-bit-programming-for-game-developers)
4. [AMD 10-K, March 9, 2004](https://ir.amd.com/financial-information/sec-filings/content/0001193125-04-037179/d10k.htm)
5. [Memory Limits for Windows and Windows Server Releases, Microsoft Learn](https://learn.microsoft.com/en-us/Windows/win32/memory/memory-limits-for-Windows-releases)
6. [AMD64 Architecture Programmer's Manual, Volume 2: System Programming](https://www.scs.stanford.edu/~zyedidia/docs/x86/amd-manual.pdf)
7. [Arm Memory Management architecture guide](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/LearnTheArchitecture-MemoryManagement-101811_0100_00_en.pdf?revision=1fdc3375-d81c-4457-b786-04fb98557de0)
8. [Abstract Data Models, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/winprog64/abstract-data-models)
9. [Virtual Address Space, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/memory/virtual-address-space)
10. [x86-64, OSDev Wiki](https://wiki.osdev.org/AMD64)
11. [5-level paging, Linux Kernel documentation](https://docs.kernel.org/5.16/x86/x86_64/5level-paging.html)
12. [AMD's 64-bit strategy, AnandTech (April 2003)](https://www.anandtech.com/show/1098/5)
13. [AMD64 Architecture Programmer's Manual, Volume 2 (Rev 3.42)](https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24593.pdf)
14. [AMD64 Architecture Programmer's Manual, Volume 1: Application Programming](https://docs.amd.com/api/khub/documents/sfvvekC9mDflu6vd3R0NXA/content)
15. [amd64 architecture programmer’s manual, volume 2:system programming](https://docs.amd.com/api/khub/documents/sD1_QL~h4Afq2_tvzxqqSQ/content)
16. [AMD64 Architecture Programmer's Manual, Volumes 1-5 (Rev 3.24)](https://docs.amd.com/api/khub/documents/68GKiN0gMEd6bMddsmhPwg/content)
17. [ARMv8-A 64-bit Architecture Reference Manual release, Arm Community](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/arm-architecture-reference-manual-for-armv8-a-64-bit-publicly-released)
18. [Armv8-A Instruction Set Architecture, Arm](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Learn%20the%20Architecture/Armv8-A%20Instruction%20Set%20Architecture.pdf?revision=af73a2a4-620d-4f86-86b0-2987dc04e154)
19. [AArch64 Options, GCC documentation](https://snapshots.sourceware.org/gcc/docs/latest/gcc/AArch64-Options.html)
20. [The Tools (64-bit compiler), Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/winprog64/the-tools)
21. [Running 32-bit Applications, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/winprog64/running-32-bit-applications)
22. [Compatibility considerations for 32-bit programs on 64-bit Windows, Microsoft Learn](https://learn.microsoft.com/en-us/troubleshoot/windows-server/performance/compatibility-limitations-32-bit-programs-64-bit-system)
23. [Performance and Memory Consumption Under WOW64, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/winprog64/performance-and-memory-consumption)
24. [Windows Server 2003 SP1 and x64 Editions: A Historical Perspective, Microsoft](https://www.microsoft.com/en-us/windows-server/blog/2005/04/05/windows-server-2003-sp1-and-x64-editions-a-historical-perspective)
25. [Intel Desktop Processors Get 64-Bit Support, Intel press release (February 2005)](https://www.intel.com/pressroom/archive/releases/2005/20050221comp.htm)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Processors & processor engineering › Instruction set architectures › ISA design concepts and classification

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/64-bit-computing

English original: https://www.edgepedia.org/64-bit-computing
