Information AboutX64 |
| CATEGORIES ABOUT X86-64 | |
| microprocessors | |
| x86 architecture | |
| advanced micro devices products | |
|
x86-64 is a 64-bit superset of the X86 Instruction Set Architecture . The x86-64 instruction set natively supports Intel 's x86 and was designed by Advanced Micro Devices (AMD), who have since renamed it '''AMD64'''. This architecture has been cloned by Intel under the name '''Intel 64''' (formerly known as Yamhill, Clackamas Technology (CT), IA-32e, and EM64T). Extending the World's Most Popular Processor Architecture This leads to the common use of the names ''x86-64'' or '''x64''' as more vendor-neutral terms to collectively refer to the two nearly identical implementations. x86-64 is not the same as IA-64 , the underlying Instruction Set architecture of Intel's Itanium branded processors. AMD64 The AMD64 instruction set is currently implemented in AMD's Athlon 64 , Athlon 64 FX , Athlon 64 X2 , Turion 64 , Turion 64 X2 , Opteron and later Sempron processors. History of AMD64 The first AMD64-based processor, the Opteron, was released in April 2003. Architectural features 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 00007FFF`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: many operating systems (including, but not limited to, the Windows NT family) take the higher-addressed half of the address space (named kernel space) for themselves and leave the lower-addressed half (user space) for application code, user mode stacks, heaps, and other data regions. 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. Also, fixing the contents of the unused address bits prevents their use by operating system as flags, privilege markers, etc., which could become problematic when the architecture is indeed extended to 52, 56, 60 and 64 bits. The 64-bit addressing mode ("long mode") is a superset of Physical Address Extension s (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: ;''') 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. Implementations The following processors implement the AMD64 architecture:
INTEL 64 Intel 64 is Intel's implementation of x86-64. It is used in newer versions of Pentium 4 , Pentium D , Pentium Extreme Edition , Celeron D , Xeon , and Pentium Dual-Core processors, and in all versions of the Core 2 processors. History of Intel 64 Historically, AMD has developed and produced processors patterned after Intel's original designs, but with x86-64, roles were reversed: Intel found itself in the position of adopting the architecture which AMD had created as an extension to Intel's own x86 processor line. Intel's project was originally Codename d Yamhill (after the Yamhill River in Oregon 's Willamette Valley ). After several years of denying its existence, Intel announced at the February 2004 IDF that the project was indeed underway. Intel's chairman at the time, Craig Barrett , admitted that this was one of their worst kept secrets. "Craig Barrett confirms 64 bit address extensions for Xeon. And Prescott", from The Inquirer "A Roundup of 64-Bit Computing", from internetnews.com Implementations Intel 64 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. This was largely due to the competitive pressure of AMD's AMD64 technology implemented on Opteron and Athlon 64 lines of microprocessing units, otherwise known as the K8 core, one year earlier in 2003; 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 Intel 64 technology was the multi-socket processor Xeon code-named ''Nocona''. Since the Nocona Xeon itself is directly based on Intel's desktop processor, the Pentium 4 , the Pentium 4 also has Intel 64 technology built in, although as with Hyper-Threading , this feature was not initially enabled on the then-new Prescott design, likely because enabling Intel 64 did not coincide with Intel's stance on 64-bit x86 extensions at that particular time. Intel subsequently began selling Intel 64-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 Intel 64 (under the name EM64T at that time) in mainstream desktop processors was the N0 Stepping Prescott-2M. The E0 revision also adds eXecute Disable(XD) (Intel's name for the NX Bit ) support to Intel 64, and has been included in the current Xeon code-named ''Irwindale''. All 9xx/8xx/6xx/5x6/5x1/3x6/3x1 series CPUs have Intel 64 enabled, as do the Core 2 CPUs, and as will all future Intel CPUs. Intel 64 is also present in the last members of the Celeron D line. The first Intel Mobile Processor supporting Intel 64 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 Intel 64. The following processors implement the Intel 64 architecture:
DIFFERENCES BETWEEN AMD64 AND INTEL 64 There are a small number of differences between the two instruction sets. Compilers generally produce binaries that target both AMD64 and Intel 64, making the differences mainly of interest to compiler developers and operating system developers. Recent implementations
Older implementations
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 long believed that 64-bit RISC chips such as the DEC Alpha would eventually replace the outdated and quirky x86 architecture (which is a direct descendant from 8-bit processors, such as the 8085 and the Z80 ). Part of the reason this did not happen was the vast investment in application software for x86-based systems. Intel, Cyrix, AMD, and others, also quickly found ways to apply modern design principles (inspired by RISC designs, as well as other ideas) ''transparently'', i.e. without changing the basic programming model. A large company, such as Intel, can also employ the latest low-level implementation techniques, which enhances performance regardless of architecture. Furthermore, the 8-bit heritage of the x86 processor line actually helps making good use of limited cache memories, thanks to an inherent small code footprint. Part of the reason is also that the worst performance problems of the original 8086 and 8087 chips, such as the slow bus-interface, were quickly fixed by the advent of the 80186 and 80286. The 80286 also introduced Protected Mode , allowing a fully protected OS to be developed for it (though the protection was segment-based), and increased the physical address space to 24 bits. Registers were still 16 bits however, meaning that the same segment size limitations as in 8088 still applied, though the segmentation was changed to support a larger segmented address space (up to 8192 segments globally and per task, each up to 65536 bytes in size) and also protection. The 80386 (in 1985) then extended the registers to 32 bits, and extended the size of the linear address space, accessible without use of the segmentation architecture, to 2^32 bytes. The 80386 also added paging scheme on the bottom of the (now "optional") segmentation. The remaining performance hampering quirks of the original design, such as the stacked x87 registers, has been both largely factored out (by register renaming and other techniques) and, lately, successively replaced, without losing backward compatibility. The x86-64 architecture finally migrates the x86 architecture into a fully 64-bit environment, while maintaining compatibility with legacy 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 address space. Nevertheless, their 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. BSD FreeBSD FreeBSD first added x86-64 support as an experimental architecture in 5.1-RELEASE, in June 2003. It was included as a standard distribution architecture as of 5.2-RELEASE, in January 2004. 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 integrate more fully the 32-bit x86 Application Binary Interface (ABI), in the same manner as the Linux 32-bit ABI compatibility currently works. Within the FreeBSD environment and developer code base, the x86-64 architecture is usually referred to as "amd64". 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 Intel 64 processors which contains cloned support for the AMD64 extensions, but since Intel left out support for the page table NX bit in early Intel 64 processors, there is no W^X support on those Intel CPUs; later Intel 64 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 . Linux See Also: List of 64-bit Linux distributions 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. Several Linux distributions currently ship with x86-64-native kernels and Userlands . Some, such as SUSE , Mandriva and Debian GNU/Linux package both 32-bit and 64-bit systems on a single DVD-ROM image to allow automatic selection of the best software during installation. Mac OS X and higher support 64-bit command-line tools when run on 64-bit Intel-based machines, just as version 10.4 and higher support them on 64-bit PowerPC machines. Apple - Mac OS X Xcode 2.4 Release Notes: Compiler Tools 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. 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 isainfo 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 Vista x64, which also has many different versions, was released in January 2007. Windows for x64 has the following characteristics:
INDUSTRY NAMING CONVENTIONS
Similarly, Microsoft began using "x64" as a vendor-neutral way to refer to products that support both AMD64 and Intel 64. Other companies, such as Sun Microsystems , have also adopted this convention. Many operating systems introduced support for x86-64 prior to Intel announcing its own implementation of the architecture, and thus adopted the name of the only implementation at the time, "AMD64" (or "amd64"):
See the History Of Intel 64 section of this article for the various names used by Intel. SEE ALSO NOTES AND REFERENCES EXTERNAL LINKS
|
|
|