|
x86-64 is a 64-bit microprocessor architecture and corresponding instruction set; it is a superset of the Intel x86 architecture, which it natively supports. It was designed by Advanced Micro Devices (AMD), who have since renamed it AMD64. This architecture has also been adopted by Intel under the names EM64T, IA-32e or Intel 64. The names x86-64 or x64 are sometimes used as vendor-neutral terms to collectively refer to the two nearly identical implementations. AMD64 The AMD64 instruction set is currently implemented in AMD's Athlon 64, Athlon 64 FX, Athlon 64 X2, Turion 64, Opteron and later Sempron processors. Architectural features AMD64 was created as an alternative to Intel and Hewlett Packard's radically different IA-64 architecture which has received a relatively cool market reception in many market sectors, and which was protected from cloning by a number of patents. The primary defining characteristic of AMD64 is its support for 64-bit general purpose registers, 64-bit integer arithmetic and logical operations, and 64-bit virtual addresses. The designers took the opportunity to make other improvements as well. The most significant changes include: Virtual address space details Although virtual addresses are 64 bits wide in 64-bit mode, current implementations (and any chips known to be in the planning stages) do not allow the entire virtual address space of 264 bytes (16 exbibytes, or about 18×1018 bytes) to be used. Most operating systems and applications will not need such a large address space for the foreseeable future (for example, Windows implementations for AMD64 are only populating 16 tebibytes, or 44 bits' worth), so supporting such wide virtual addresses would simply increase the complexity and cost of address translation with no real benefit. AMD therefore decided that, in the first implementations of the architecture, only the least significant 48 bits of a virtual address would actually be used in address translation (page table lookup). However, bits 48 through 63 of any virtual address must be copies of bit 47 (in a manner akin to sign extension), or an exception will be raised. Addresses complying with this rule are referred to as "canonical form." Canonical form addresses run from 0 through 7FFF`FFFFFFFF, and from FFFF8000`00000000 through FFFFFFFF`FFFFFFFF, for a total of 248 bytes or 256 tebibytes of usable virtual address space. This "quirk" allows an important feature for later scalability to true 64-bit addressing: traditionally, operating systems take one half of the address space for themselves (usually the higher half, named kernel space) and leave the other to applications (user space). The "canonical address" design ensures that every AMD64 compliant implementation has, in effect, two memory halves: the lower half starts at 00000000`00000000 and "grows upwards" as more virtual address bits become available, while the higher half is "docked" to the top of the address space and grows downwards. The 64-bit addressing mode ("long mode") is a superset of Physical Address Extensions (PAE); because of this, page sizes may be either 4 KiB (212 bytes) or 2 MiB (221 bytes). However, rather than the three-level page table system used by systems in PAE mode, systems running in long mode use four levels of page table: PAE's Page-Directory Pointer Table is extended from 4 entries to 512, and an additional Page-Map Level 4 Table is added, containing 512 entries in 48-bit implementations. In implementations supporting larger virtual addresses, this latter table would either grow to accommodate sufficient entries to describe the entire address range, up to a theoretical maximum of 33,554,432 entries for a 64-bit implementation, or be over ranked by a new mapping level, such as a PML5. Either way, a full mapping hierarchy of 4 KiB pages for the whole 48-bit space would take a bit more than 512 GiB of RAM (about 0.196% of the 256 TiB virtual space). Operating modes Operating mode explanation There are two primary modes of operation for this architecture: Long Mode: The intended primary mode of operation of the architecture; it is a combination of the processor's native 64-bit mode and a 32-bit/16-bit compatibility mode. It is used by 64-bit operating systems. Under a 64-bit operating system, 64-bit, 32-bit and 16-bit (or 80286) protected mode applications may be supported. Since the basic instruction set is the same, there is no major performance penalty for executing x86 code. This is unlike Intel's IA-64, where differences in the underlying ISA means that running 32-bit code is like using an entirely different processor. However, on AMD64, 32 bit x86 applications may still benefit from a 64-bit recompile, due to the additional registers in 64-bit code, which a high-level compiler can use for optimization. Legacy Mode: The mode used by 16-bit (protected mode or real mode) and 32-bit operating systems. In this mode, the processor acts just like an x86 processor, and only 16-bit or 32-bit code can be executed. 64-bit programs will not run. AMD implementations The following processors implement the x86-64 architecture: EM64T Extended Memory 64-bit Technology (EM64T) is Intel's implementation of AMD's AMD64. During much of AMD's history, they have produced processors patterned after Intel's, but, in an ironic twist of computing history, AMD64 has been adopted (under the name EM64T or IA-32e) by Intel — the original creators of the x86 processor line—in newer versions of its Pentium 4, Pentium D, Pentium Extreme Edition, Celeron D, and Xeon processors, and in its Core 2 processors. History The EM64T project began with the codename Yamhill, named after the Yamhill River in Oregon's Willamette Valley. After several years of denying that this project existed, Intel eventually admitted it existed in early 2004, and gave it the codename CT (Clackamas Technology), also named after an Oregon river, the Clackamas. Then within the space of weeks of the CT announcement, Intel gave it several new names. After the spring 2004 IDF, Intel named it IA-32E (IA-32 Extensions) and a few weeks later devised the name EM64T. Intel's chairman at the time, Craig Barrett, admitted that this was one of their worst kept secrets. refers to the instruction set as "Intel64". Summary from the Intel website Intel EM64T improves performance by allowing the system to address more than 4 GiB of both virtual and physical memory. Intel EM64T provides support for: Intel implementations EM64T was originally implemented on the E revision (Prescott) of Pentium 4 line of microprocessors, which were supported by i915P (Grantsdale) and i925X (Alderwood) chipsets in June 2004. EM64T's implementation was largely due to the competitive pressure of AMD's AMD64 technology implemented on Opteron and Athlon64 lines of microprocessing units, otherwise known as the K8 core, one year earlier in 2003; and the technology was largely built compatible to AMD64, and the then announced Windows XP Professional x64 Edition supporting AMD64 technology. Intel's first processor to activate the EM64T technology was the multi-socket processor Xeon codenamed Nocona. Since the Nocona Xeon itself is directly based on Intel's desktop processor, the Pentium 4, the Pentium 4 also has EM64T technology built in, although as with Hyper-Threading, this feature was not initially enabled on the then-new Prescott design, likely because enabling EM64T did not coincide with Intel's stance on x86-64 extensions at that particular time. Intel has since begun selling EM64T enabled Pentium 4s using the E0 revision of the Prescott core, being sold on the market as the Pentium 4, model F. However, the revision F core was targeted at workstations. Intel's official launch of EM64T to desktop was the N0 Stepping Prescott-2M. The E0 revision also adds eXecute Disable(XD) support to EM64T, Intel's name for the NX bit, and has been included in the current Xeon codenamed Irwindale. All 9xx/8xx/6xx/5x6/5x1/3x6/3x1 series CPUs have EM64T enabled, as do the Core 2 CPUs, and as will all future Intel CPUs. EM64T is also present in the last members of the Celeron D line. The first Intel mobile processor supporting EM64T is the Merom version of the Core 2 processor, which was released on 27 July 2006. None of Intel's earlier notebook CPUs (Core Duo, Pentium M, Celeron M, Mobile Pentium 4) support EM64T. Differences between AMD64 and EM64T There are a small number of differences between each instruction set. Compilers generally produce binaries that target both AMD64 and EM64T, making the differences mainly of interest to compiler developers and operating system developers. Currently Previously Market analysis AMD's AMD64 design represents a break with the company's past behavior of following Intel's standards, but emulates Intel's earlier behavior of extending the x86 architecture, from the 16-bit 8086 to the 32-bit 80386 and beyond, without ever removing backward compatibility. It was believed at one point that 64-bit RISC chips such as the DEC Alpha would eventually replace the outdated and quirky x86 architecture. Part of the reason this did not happen was the vast investment in application software for x86-based systems. The x86-64 architecture effectively migrates the x86 architecture into a fully 64-bit environment, while maintaining legacy compatibility with x86 applications. As of 2006, most consumer and business applications have not evolved into 64-bit aware software. Most current software applications do not need to address more than 2 GiB of memory. Nevertheless, the chips' cost-effectiveness has allowed AMD to capture a larger share of the personal computer market, at Intel's expense, simply because of the performance to cost ratio and the expected growth capability should 64-bit applications become common. Intel in the summer of 2006 had announced a substantial reduction in net revenue and major restructuring. Operating system support The following operating systems and releases support the x86-64 architecture in long mode. DOS It is possible to enter long mode under DOS with a DOS extender similar to DOS4GW. DOS itself is not aware of that and no benefits should be expected unless running DOS in an emulation with an adequate virtualization driver backend, for example: the mass storage interface. FreeBSD FreeBSD first added x86-64 support as an experimental architecture in 5.1-RELEASE. Since then, FreeBSD has designated the x86-64 architecture as a Tier 1 platform. The 6.0-RELEASE version cleaned up some quirks with running 32-bit executables under AMD64, and most drivers work just as they do on 32-bit x86 architectures. Work is currently being done to fully integrate the 32-bit x86 application binary interface (ABI), in the same manner as the Linux's 32-bit ABI compatibility currently works. Within the FreeBSD environment and developer code base, the x86-64 architecture is usually referred to as "amd64". Linux Linux was the first operating system kernel to run the x86-64 architecture in long mode, starting with the 2.4 version prior to the physical hardware's availability. Linux also provides backward compatibility for running 32-bit executables. This permits programs to be recompiled into long mode while retaining the use of 32-bit programs. CentOS, Debian, Fedora, Frugalware, Gentoo, Kanotix, Mandriva, Novell, PLD, Red Hat, Source Mage, SUSE and Ubuntu Linux distributions currently ship with x86-64-native kernels and userlands. Some, such as SUSE, package both 32-bit and 64-bit systems on a single DVD-ROM image to allow automatic selection of the best software during installation. The Debian team has announced that their next release (Debian GNU/Linux 4.0 alias etch) will officially support the x86-64 architecture. Mac OS X Apple Computer has indicated that Mac OS X 10.5 will support 64-bit applications on its 64-bit x86-based machines as well as on 64-bit PowerPC machines. Mac OS X 10.4.7 and higher support 64-bit command-line tools when run on 64-bit x86-based machines, just as version 10.4 and higher support them on 64-bit PowerPC machines. MenuetOS The AMD64 version of MenuetOS was released in June 2005. Although MenuetOS was originally written for 32-bit x86 architectures and released under the GPL, the AMD64 version is proprietary. It is distributed as freeware with the source code for some components. NetBSD Support for the x86-64 architecture was first committed to the NetBSD source tree on 19 June 2001. As of NetBSD 2.0, released on 9 December 2004, NetBSD/amd64 is a fully integrated and supported port. OpenBSD OpenBSD has supported AMD64 since OpenBSD 3.5, released on 1 May 2004. Complete in-tree support for the platform was achieved prior to the hardware's initial release due to AMD's loaning of several machines for the project's hackathon that year. OpenBSD developers have taken to the platform because of its use of the NX bit, which allowed for an easy implementation of the W^X feature. The code for the AMD64 port of OpenBSD also runs on the Intel processors with EM64T support which contain cloned support for the AMD64 extensions, but since Intel left out support for the page table NX bit in early EM64T processors, there is no W^X support on those Intel CPUs; later Intel EM64T processors added support for the NX bit under the name "XD bit". Symmetric multiprocessing (SMP) is supported on OpenBSD's AMD64 port, starting with release 3.6 on 1 November 2004. Solaris Solaris 10 and later releases support the x86-64 architecture. Just as with the SPARC architecture, there is only one operating system image for all 32-bit and 64-bit x86 systems; this is labeled as the "x86/x64" DVD-ROM image. Default behavior is to boot a 64-bit kernel, allowing both 64-bit and existing or new 32-bit executables to be run. A 32-bit kernel can also be manually selected, in which case only 32-bit executables are supported. The isalist command can be used to determine if a system is running a 64-bit kernel.Windows x64 editions of Microsoft Windows client and server, Windows XP Professional x64 Edition and Windows Server 2003 SP1 x64 Edition, were released in March 2005. Internally they are actually the same build (5.2.3790.1830 SP1), as they share the same source base and operating system binaries, so even system updates are released in unified packages, much in the manner as Windows 2000 Professional and Server editions for x86. Windows for x64 has the following characteristics: Industry naming conventions Since AMD64 and EM64T are substantially similar, it is convenient to have a vendor-neutral way to designate products that support both implementations. AMD's original designation for this processor architecture, "x86-64", is still sometimes used for this purpose. The Linux kernel and Apple's Mac OS X• uses the variant "x86_64". Similarly, Microsoft began using "x64" as a vendor-neutral way to refer to products that support both AMD64 and EM64T. Other companies, such as Sun Microsystems, have also adopted this convention. Internally, x64 versions of Windows use the AMD64 moniker to designate various components which use 64-bit technology for IA-32 processors (for example, the system folder on a Windows x64 Edition installation CD-ROM is named "AMD64" instead of "i386" in 32-bit versions). Similarly, the isalist command in Sun's Solaris operating system identifies both AMD64- and EM64T-based systems as "amd64"; largely due to the fact that Solaris support for this processor architecture predated the existence of Intel's EM64T extensions and the x64 term. Likewise, other operating system, such as Gentoo Linux, FreeBSD and NetBSD support both AMD64 and EM64T under the architecture name "amd64".See also | |||||||
|
| ||||||||
![]() |
|
| |