All Topics  
X86-64

 
X86 64

   Email Print
   Bookmark   Link






 

X86-64



 
 
x86-64 is a superset
SuperSet

SuperSet Software was a group founded by friends and former Eyring Research Institute co-workers Drew Major, Dale Neibaur, Kyle Powell and later joined by Mark Hurst....
 of the x86 instruction set architecture. x86-64 processor
Central processing unit

A central processing unit is an electronic circuit that can execute computer programs. This broad definition can easily be applied to many early computers that existed long before the term "CPU" ever came into widespread usage....
s can run existing 32-bit or 16-bit x86 programs at full speed, but also support new programs written with a 64-bit
64-bit

64-bit CPUs have existed in supercomputers since the 1960s and in RISC-based computer workstation and Server s since the early 1990s. In 2003 they were introduced to the mainstream personal computer arena, in the form of the x86-64 and 64-bit PowerPC processor architectures....
 address space and other additional capabilities.

The x86-64 specification was designed by Advanced Micro Devices
Advanced Micro Devices

Advanced Micro Devices, Inc. is an United States multinational corporation semiconductor industry company based in Sunnyvale, California, that develops Central processing unit and related technologies for commercial and consumer markets....
 (AMD), who have since renamed it AMD64. The first family of processors to support this architecture, which AMD calls AMD64, was the AMD K8 family of processors.






Discussion
Ask a question about 'X86-64'
Start a new discussion about 'X86-64'
Answer questions from other users
Full Discussion Forum



Encyclopedia


x86-64 is a superset
SuperSet

SuperSet Software was a group founded by friends and former Eyring Research Institute co-workers Drew Major, Dale Neibaur, Kyle Powell and later joined by Mark Hurst....
 of the x86 instruction set architecture. x86-64 processor
Central processing unit

A central processing unit is an electronic circuit that can execute computer programs. This broad definition can easily be applied to many early computers that existed long before the term "CPU" ever came into widespread usage....
s can run existing 32-bit or 16-bit x86 programs at full speed, but also support new programs written with a 64-bit
64-bit

64-bit CPUs have existed in supercomputers since the 1960s and in RISC-based computer workstation and Server s since the early 1990s. In 2003 they were introduced to the mainstream personal computer arena, in the form of the x86-64 and 64-bit PowerPC processor architectures....
 address space and other additional capabilities.

The x86-64 specification was designed by Advanced Micro Devices
Advanced Micro Devices

Advanced Micro Devices, Inc. is an United States multinational corporation semiconductor industry company based in Sunnyvale, California, that develops Central processing unit and related technologies for commercial and consumer markets....
 (AMD), who have since renamed it AMD64. The first family of processors to support this architecture, which AMD calls AMD64, was the AMD K8 family of processors. This was the first time any company other than Intel made significant additions to the IA-32 architecture. Intel was forced to follow suit, introducing modified NetBurst
NetBurst

The Intel NetBurst Microarchitecture, called P68 inside Intel, was the successor to the Intel P6 microarchitecture in the x86 family of central processing units made by Intel....
 family processors, initially referred to as "IA-32e" or "EM64T" and now called Intel 64 and almost identical to AMD64. x86-64 is backwards compatible with 32-bit code without any performance loss. For example, The Developers Manuals available from Intel on the IA-32 architecture refer to IA-32 and IA-32e in tandem. AMD license
License

The verb license or grant license means to give permission. The noun license refers to that permission as well as to the document memorializing that permission....
d its x86-64 design to Intel, where it is marketed under the name Intel 64 (formerly EM64T). AMD's design replaced earlier attempts by Intel to design its own x86-64 extensions which had been referred to as IA-32e. As Intel licenses AMD the right to use the original x86 architecture (upon which AMD's x86-64 is based), these rival companies now rely on each other for 64-bit processor development. This has led to a case of mutually assured destruction should either company revoke its respective license. Should such a scenario take place, AMD would no longer be authorized to produce any x86 processors, and Intel would no longer be authorized to produce x86-64 processors, forcing them back to the now-obsolete 32-bit x86 architecture. The last processors Intel manufactured which did not use AMD's x86-64 design were early versions of the Pentium 4 "Prescott"
Pentium 4

The Pentium 4 brand refers to Intel's line of single-core mainstream Desktop computer and laptop central processing units introduced on November 20, 2000 ....
, introduced in February 2004.

VIA Technologies
VIA Technologies

VIA Technologies is a Taiwanese manufacturer of integrated circuits, mainly motherboard chipsets, Central processing unit, and computer memory, and is part of the Formosa Plastics Group....
, another producer of x86 processors, have also included x86-64 instructions in their VIA Isaiah architecture. The terms x86-64 and x64 are often used as vendor-neutral terms to collectively refer to x86-64 processors from any company.

The x86-64 specification is distinct from the Intel Itanium
Itanium

Itanium is the brand name for 64-bit Intel microprocessors that implement the Intel Itanium architecture . Intel has released two processor families using the brand: the original Itanium and the Itanium 2....
 (formerly IA-64) architecture, which is not compatible on the native instruction set level with the x86 or x86-64 architecture.

AMD64

The AMD64 instruction set is implemented in AMD's Athlon 64
Athlon 64

The Athlon 64 is an eighth-generation, AMD64-architecture microprocessor produced by AMD, released on September 23, 2003. It is the third processor to bear the name Athlon, and the immediate successor to the Athlon XP....
, Athlon 64 FX
Athlon 64

The Athlon 64 is an eighth-generation, AMD64-architecture microprocessor produced by AMD, released on September 23, 2003. It is the third processor to bear the name Athlon, and the immediate successor to the Athlon XP....
, Athlon 64 X2
Athlon 64 X2

The Athlon 64 X2 is the first multi-core desktop computer Central processing unit designed by AMD. It is essentially a processor consisting of two Athlon 64 cores joined together on one Die with additional control logic....
, Phenom
Phenom (processor)

Phenom is the Advanced Micro Devices desktop processor line based on the AMD K10 microarchitecture, or Family 10h Processors, as AMD calls them....
, Phenom II
Phenom II

Phenom II is a family of AMD multi-core 45nm central processing units, succeeding the original Phenom . The Socket AM2+ version of Phenom II was released in December 2008, while Socket AM3 versions with DDR3 support, along with an initial batch of triple- and quad-core processors were released on February 9, 2009....
, Athlon X2, Turion 64
Turion 64

Turion 64 is the brand name AMD applies to its 64-bit low-consumption Central Processing Unit codenamed K8L. The Turion 64 and Turion 64 X2 processors compete with Intel's mobile processors, initially the Pentium M and currently the Intel Core and Intel Core 2 processors....
, Turion 64 X2
Turion 64 X2

Turion 64 X2 is AMD's 64-bit Multi-core notebook processor, intended to compete with Intel's Intel Core and Intel Core 2 CPUs. The Turion 64 X2 was launched on May 17, 2006, after several delays....
, Opteron
Opteron

The Opteron is Advanced Micro Devices's x86 server Central processing unit line, and was the first processor to implement the AMD64 instruction set architecture ....
 and later Sempron
Sempron

Sempron has been the marketing name used by AMD for several different entry level desktop CPUs, using several different technologies and CPU socket formats....
 processors.

History of AMD64

AMD64 was created as an alternative to Intel and Hewlett Packard's radically different IA-64 architecture. Originally announced as "x86-64" in August 2000, the architecture was positioned by AMD from the beginning as an evolutionary way to add 64-bit computing capabilities to the existing x86 architecture, as opposed to Intel's approach of creating an entirely new 64-bit architecture with IA-64.

The first AMD64-based processor, the Opteron, was released in April 2003.

Architectural features

The primary defining characteristic of AMD64 is the availability of 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:

  • 64-bit integer capability: All general-purpose registers (GPRs) are expanded from 32 bits to 64 bits, and all arithmetic and logical operations, memory-to-register and register-to-memory operations, etc. can now operate directly on 64-bit integers. Pushes and pops on the stack are always in 8-byte strides, and pointers are 8 bytes wide.


  • Additional registers
    Processor register

    In computer architecture, a processor register is a small amount of Computer storage available on the CPU whose contents can be accessed more quickly than storage available elsewhere....
    :
    In addition to increasing the size of the general-purpose registers, the number of named general-purpose registers is increased from eight (i.e. eax,ebx,ecx,edx,ebp,esp,esi,edi) in x86-32 to 16. It is therefore possible to keep more local variables in registers rather than on the stack, and to let registers hold frequently accessed constants; arguments for small and fast subroutines may also be passed in registers to a greater extent. However, AMD64 still has fewer registers than many common RISC processors (which typically have 32–64 registers) or VLIW-like machines such as the IA-64 (which has 128 registers).


  • Additional XMM (SSE) registers: Similarly, the number of 128-bit XMM registers (used for Streaming SIMD
    Streaming SIMD Extensions

    In computing, Streaming SIMD Extensions is a SIMD instruction set extension to the x86 architecture, designed by Intel and introduced in 1999 in their Pentium III series processors as a reply to AMD's 3DNow! ....
     instructions) is also increased from 8 to 16.


  • Larger virtual address space: Current processor models implementing the AMD64 architecture can address up to 256 TB
    Terabyte

    A terabyte is a measurement term for computer storage. The value of a terabyte based upon a decimal radix is defined as one 1000000000000 bytes, or 1000 gigabytes....
     (281,474,976,710,656 byte
    Byte

    A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
    s) of virtual address space. This limit can be raised in future implementations to 16 EB
    Exabyte

    An exabyte is a unit of information or computer storage equal to one quintillion bytes. It is commonly abbreviated EB. When used with byte multiples, the SI prefix may indicate a power of either 1000 or 1024, so the exact number may be either:...
     (18,446,744,073,709,551,616 bytes). This is compared to just 4 GB
    Gigabyte

    Gigabyte is an SI prefix-multiple of the unit byte for Computer data storage. Since the giga- prefix means 109, gigabyte means 1,000,000,000 bytes ....
     (4,294,967,296 bytes) for 32-bit x86. This means that very large files can be operated on by mapping the entire file into the process' address space (which is sometimes faster than working with file read/write calls), rather than having to map regions of the file into and out of the address space.


  • Larger physical address space: Current implementations of the AMD64 architecture can address up to 1 TB (1,099,511,627,776 bytes) of RAM; the architecture permits extending this to 4 PB
    Petabyte

    A petabyte is a unit of information or computer storage equal to one quadrillion bytes, or 1024 terabytes. It is commonly abbreviated PB....
     (4,503,599,627,370,496 bytes) in the future (limited by the page table entry format). In legacy mode
    Legacy mode

    In computing, legacy mode is a state in which a computer system, component, or software application behaves in a way different from its standard operation in order to support older software, data, or expected behavior....
    , Physical Address Extension
    Physical Address Extension

    In computing, Physical Address Extension is a feature of x86 and x86-64 processors that enable the use of more than 4 gigabytes of physical memory to be used in 32-bit systems, given appropriate operating system support....
     (PAE) is included, as it is on most current 32-bit x86 processors, allowing access to a maximum of 64 GB (68,719,476,736 bytes).


  • Instruction pointer relative data access: Instructions can now reference data relative to the instruction pointer (RIP register). This makes position independent code, as is often used in shared libraries and code loaded at run time, more efficient.


  • SSE instructions: The original AMD64 architecture adopted Intel's SSE
    Streaming SIMD Extensions

    In computing, Streaming SIMD Extensions is a SIMD instruction set extension to the x86 architecture, designed by Intel and introduced in 1999 in their Pentium III series processors as a reply to AMD's 3DNow! ....
     and SSE2
    SSE2

    SSE2, Streaming SIMD Extensions 2, is one of the IA-32 SIMD instruction sets. SSE2 was first introduced by Intel with the initial version of the Pentium 4 in 2001....
     as core instructions. SSE3
    SSE3

    SSE3, also known by its Intel code name Prescott New Instructions , is the third iteration of the Streaming SIMD Extensions instruction set for the IA-32 architecture....
     instructions were added in April 2005. SSE2 replaces the x87
    X87

    x87 is a math-related instruction subset of the x86 architecture of Central processing unit. It is so called because initially such instructions were processed by an coprocessor#Intel coprocessors chip 8087....
     instruction set's IEEE 80-bit precision
    IEEE floating-point standard

    The first IEEE Standard for Binary Floating-Point Arithmetic set the standard for floating-point computation for 23 years. It became the most widely-used standard for floating point computation, and is followed by many Central processing unit and floating point unit implementations....
     with the choice of either IEEE 32-bit or 64-bit floating-point mathematics. This provides floating-point operations compatible with many other modern CPUs. The SSE and SSE2 instructions have also been extended to operate on the eight new XMM registers. SSE and SSE2 are available in 32-bit mode in modern x86 processors; however, if they're used in 32-bit programs, those programs will only work on systems with processors that have the feature. This is not an issue in 64-bit programs, as all AMD64 processors have SSE and SSE2, so using SSE and SSE2 instructions instead of x87 instructions does not reduce the set of machines on which x64 programs can be run. SSE and SSE2 are generally faster than, and duplicate most of the features of, the traditional x87 instructions, MMX, and 3DNow!
    3DNow!

    3DNow! is the trade name of a multimedia extension created by AMD for its processors, starting with the K6-2 in 1998. It is an addition of SIMD instructions to the traditional x86 instruction set, designed to improve a central processing unit's ability to perform the vector processing requirements of many graphic-intensive applications....
    .


  • No-Execute bit
    NX bit

    The NX bit, which stands for No eXecute, is a technology used in CPUs to segregate areas of memory for use by either storage of processor instructions or for storage of data, a feature normally only found in Harvard architecture processors....
    :
    The "NX" bit (bit 63 of the page table entry) allows the operating system to specify which pages of virtual address space can contain executable code and which cannot. An attempt to execute code from a page tagged "no execute" will result in a memory access violation, similar to an attempt to write to a read-only page. This should make it more difficult for malicious code to take control of the system via "buffer overrun
    Buffer overflow

    In computer security and computer programming, a buffer overflow, or buffer overrun, is an Anomaly in software condition where a process attempts to store data beyond the boundaries of a fixed-length buffer ....
    " or "unchecked buffer" attacks. A similar feature has been available on x86 processors since the 80286 as an attribute of segment descriptors; however, this works only on an entire segment at a time. Segmented addressing has long been considered an obsolete mode of operation, and all current PC operating systems in effect bypass it, setting all segments to a base address of 0 and a size of 4 GB (4,294,967,296 bytes). AMD was the first x86-family vendor to implement no-execute in linear addressing mode. The feature is also available in legacy mode on AMD64 processors, and recent Intel x86 processors, when PAE is used.


  • Removal of older features: A number of "system programming" features of the x86 architecture are not used in modern operating systems and are not available on AMD64 in long (64-bit and compatibility) mode. These include segmented addressing (although the FS and GS segments are retained in vestigial form for use as extra base pointers to operating system structures), the task state switch mechanism, and Virtual 8086 mode
    Virtual 8086 mode

    In the 80386 microprocessor and later, Virtual 8086 mode, also called virtual real mode or VM86, allows the execution of real mode applications that are protected mode#Real_mode_application_compatibility directly in protected mode....
    . These features do of course remain fully implemented in "legacy mode," thus permitting these processors to run 32-bit and 16-bit operating systems without modification.


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 16 EB (18,446,744,073,709,551,616 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 TB (17,592,186,044,416 bytes), or 44 bits
BITS

BITS or bits may refer to:* Binary digits* Drill bits* The pieces of a Spanish dollar* Bits , a Beanie Baby teddy bear produced by Ty, Inc....
' worth), so implementing 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
Sign extension

Sign extension is the operation, in computer arithmetic, of increasing the number of bits of a binary number while preserving the number's negative and non-negative numbers....
), or the processor will raise an exception. 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 256 TB (281,474,976,710,656 bytes) 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
Windows NT

Windows NT is a family of operating systems produced by Microsoft, the first version of which was released in July 1993. It was originally designed to be a powerful high-level-language-based, processor-independent, multiprocessing, multiuser operating system with features comparable to Unix....
 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., as such use could become problematic when the architecture is indeed extended to 52, 56, 60 and 64 bits.

Current 48-bit implementation 56-bit implementation Full 64-bit implementation
(not drawn to scale)


The 64-bit addressing mode ("long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-mode....
") is a superset of Physical Address Extension
Physical Address Extension

In computing, Physical Address Extension is a feature of x86 and x86-64 processors that enable the use of more than 4 gigabytes of physical memory to be used in 32-bit systems, given appropriate operating system support....
s (PAE); because of this, page
Paging

In computer operating systems that have their main memory divided into page , paging is a transfer of pages between main memory and an auxiliary store, such as hard disk drive....
 sizes may be 4 KB
Kilobyte

Kilobyte is a unit of Computer data storage equal to either 1,024 bytes or 1,000 bytes , depending on context.It is abbreviated in a number of ways: KB, kB, K and Kbyte....
 (4096 bytes), 2 MB
Megabyte

Megabyte is a SI prefix-multiple of the unit byte for digital information computer storage or transmission and is equal to 106 bytes....
 (2,097,152 bytes), or 1 GB (1,073,741,824 bytes). However, rather than the three-level page table
Page table

A page table is the data structure used by a virtual memory system in a computer operating system to store the mapping between virtual addresses and physical addresses....
 system used by systems in PAE mode, systems running in long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-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 providing 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. A full mapping hierarchy of 4 KB (4096 bytes) pages for the whole 48-bit space would take a bit more than 512 GB (549,755,813,888 bytes) of RAM (about 0.196% of the 256 TB [281,474,976,710,656 bytes] virtual space).

Operating modes

Operating mode Operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
 required
Compiled-application rebuild required Default address size Default operand size Register extensions Typical GPR width
Long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-mode....
64-bit mode OS with 64-bit support 64 32 64
Compatibility mode 32 32 32
16 16 16
Legacy mode Protected mode
Protected mode

In computing, protected mode, also called protected virtual address mode, is an operational mode of x86-compatible central processing units ....
Legacy 16-bit or 32-bit OS 32 32 32
16 16 16
Virtual 8086 mode
Virtual 8086 mode

In the 80386 microprocessor and later, Virtual 8086 mode, also called virtual real mode or VM86, allows the execution of real mode applications that are protected mode#Real_mode_application_compatibility directly in protected mode....
16 16 16
Real mode
Real mode

Real mode, also called real address mode, is an operating mode of 80286 and later x86-compatible Central processing unit. Real mode is characterized by a 20 bit segmented memory address space , direct software access to BIOS routines and peripheral hardware, and no concept of memory protection or computer multitasking at the hardware le...
Legacy 16-bit OS


Operating mode explanation
The architecture has two primary modes of operation:

Long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-mode....
: The architecture's intended primary mode of operation; it is a combination of the processor's native 64-bit mode and a combined 32-bit and 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
Protected mode

In computing, protected mode, also called protected virtual address mode, is an operational mode of x86-compatible central processing units ....
 applications may be run.

Since the basic instruction set is the same, there is almost no 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 must be done either in emulation of x86, or with a dedicated x86 core, making the process extremely slow and essentially useless for backwards compatibility. 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
Compiler

A compiler is a computer program that transforms source code written in a programming language into another computer language . The most common reason for wanting to transform source code is to create an executable program....
 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.

AMD64 Implementations

The following processors implement the AMD64 architecture:
  • AMD Athlon 64
    Athlon 64

    The Athlon 64 is an eighth-generation, AMD64-architecture microprocessor produced by AMD, released on September 23, 2003. It is the third processor to bear the name Athlon, and the immediate successor to the Athlon XP....
  • AMD Athlon 64 X2
    Athlon 64 X2

    The Athlon 64 X2 is the first multi-core desktop computer Central processing unit designed by AMD. It is essentially a processor consisting of two Athlon 64 cores joined together on one Die with additional control logic....
  • AMD Athlon 64 FX
    Athlon 64

    The Athlon 64 is an eighth-generation, AMD64-architecture microprocessor produced by AMD, released on September 23, 2003. It is the third processor to bear the name Athlon, and the immediate successor to the Athlon XP....
  • AMD Opteron
    Opteron

    The Opteron is Advanced Micro Devices's x86 server Central processing unit line, and was the first processor to implement the AMD64 instruction set architecture ....
  • AMD Turion 64
    Turion 64

    Turion 64 is the brand name AMD applies to its 64-bit low-consumption Central Processing Unit codenamed K8L. The Turion 64 and Turion 64 X2 processors compete with Intel's mobile processors, initially the Pentium M and currently the Intel Core and Intel Core 2 processors....
  • AMD Turion 64 X2
    Turion 64 X2

    Turion 64 X2 is AMD's 64-bit Multi-core notebook processor, intended to compete with Intel's Intel Core and Intel Core 2 CPUs. The Turion 64 X2 was launched on May 17, 2006, after several delays....
  • AMD Sempron
    Sempron

    Sempron has been the marketing name used by AMD for several different entry level desktop CPUs, using several different technologies and CPU socket formats....
     ("Palermo" E6 stepping and all "Manila" models)
  • AMD Phenom
    Phenom (processor)

    Phenom is the Advanced Micro Devices desktop processor line based on the AMD K10 microarchitecture, or Family 10h Processors, as AMD calls them....
    , often followed by X3 or X4 to indicate the number of cores.
  • AMD Phenom II
    Phenom II

    Phenom II is a family of AMD multi-core 45nm central processing units, succeeding the original Phenom . The Socket AM2+ version of Phenom II was released in December 2008, while Socket AM3 versions with DDR3 support, along with an initial batch of triple- and quad-core processors were released on February 9, 2009....
    ,(45 nm) often followed by X3 or X4 to indicate the number of cores.


Intel 64

Intel 64 is Intel's implementation of x86-64. It is used in newer versions of Pentium 4
Pentium 4

The Pentium 4 brand refers to Intel's line of single-core mainstream Desktop computer and laptop central processing units introduced on November 20, 2000 ....
, Pentium D
Pentium D

The Pentium D brand refers to two series of desktop dual-core 64-bit x86 CPU with the NetBurst microarchitecture manufactured by Intel Corporation....
, Pentium Extreme Edition, Celeron D, Xeon
Xeon

The Xeon brand refers to many families of Intel Corporation's x86 architecture multiprocessing Central processing units ? for dual processor and multi-processor configuration on a single motherboard targeted at non-consumer markets of server and workstation computers, and also at blade servers and embedded systems....
 and Pentium Dual-Core processors, and in all versions of the Core 2 and Intel Core i7
Intel Core i7

Intel Core i7 is a family of three Intel desktop x86-64 processors, the first processors released using the Intel Nehalem and the successor to the Intel Core 2 family....
 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 codenamed Yamhill (after the Yamhill River
Yamhill River

The Yamhill River is an tributary of the Willamette River, in the U.S. state of Oregon. Formed by the confluence of the South Yamhill River and the North Yamhill River about east of McMinnville, Oregon, it drains part of the Northern Oregon Coast Range....
 in Oregon
Oregon

Oregon is a U.S. state in the Pacific Northwest region of the United States. The area was inhabited by many indigenous tribes before the arrival of traders, explorers and settlers....
's Willamette Valley
Willamette Valley

The Willamette Valley is the region in northwest Oregon in the United States that surrounds the Willamette River as it proceeds northward from its emergence from mountains near Eugene, Oregon to its confluence with the Columbia River at Portland, Oregon....
). After several years of denying its existence, Intel announced at the February 2004 IDF
Intel Developer Forum

Intel Developer Forum , is a gathering of technologists to discuss Intel products and products based around Intel products. The first IDF was in 1997....
 that the project was indeed underway. Intel's chairman at the time, Craig Barrett
Craig Barrett (Intel Chairman)

Craig R. Barrett is the Chairman of the Board of the Intel Corporation since May 2005.Previously, he served as the President of Intel Corporation starting in 1997 and its Chief Executive Officer from 1998 to 2005....
, admitted that this was one of their worst kept secrets.

Intel's name for this technology has changed several times. The name used at the IDF was CT (presumably for Clackamas Technology, another codename from an Oregon river
Clackamas River

The Clackamas River is a tributary, about long, of the Willamette River in northwestern Oregon in the United States. The river drains an area of about ....
); within weeks they began referring to it as IA-32e (for IA-32
IA-32

IA-32 , often generically called x86 or x86-32, is the instruction set architecture of Intel's most commercially successful microprocessors....
 extensions) and in March 2004 unveiled the "official" name EM64T (Extended Memory 64 Technology). In late 2006 Intel began instead using the name Intel 64 for its implementation, paralleling AMD's use of the name AMD64.

Intel 64 Implementations

Intel 64 was originally implemented on the E revision (Prescott
Pentium 4

The Pentium 4 brand refers to Intel's line of single-core mainstream Desktop computer and laptop central processing units introduced on November 20, 2000 ....
) of Pentium 4
Pentium 4

The Pentium 4 brand refers to Intel's line of single-core mainstream Desktop computer and laptop central processing units introduced on November 20, 2000 ....
 line of microprocessors, which were supported by i915P (Grantsdale) and i925X (Alderwood) chipsets in June 2004; the technology was largely built compatible to AMD64, and the then-announced Windows XP Professional x64 Edition. The feature was not enabled on the initial Prescott chips (February 2004).

Intel's first processor to activate the Intel 64 technology was the multi-socket processor Xeon
Xeon

The Xeon brand refers to many families of Intel Corporation's x86 architecture multiprocessing Central processing units ? for dual processor and multi-processor configuration on a single motherboard targeted at non-consumer markets of server and workstation computers, and also at blade servers and embedded systems....
 code-named Nocona
Xeon

The Xeon brand refers to many families of Intel Corporation's x86 architecture multiprocessing Central processing units ? for dual processor and multi-processor configuration on a single motherboard targeted at non-consumer markets of server and workstation computers, and also at blade servers and embedded systems....
 later in 2004. Intel subsequently began selling Intel 64-enabled Pentium 4s using the E0 revision of the Prescott core, being sold on the OEM market as the Pentium 4, model F. The E0 revision also adds eXecute Disable (XD) (Intel's name for the NX bit
NX bit

The NX bit, which stands for No eXecute, is a technology used in CPUs to segregate areas of memory for use by either storage of processor instructions or for storage of data, a feature normally only found in Harvard architecture processors....
) to Intel 64, and has been included in then current Xeon code-named Irwindale. Intel's official launch of Intel 64 (under the name EM64T at that time) in mainstream desktop processors was the N0 Stepping Prescott-2M. All 9xx, 8xx, 6xx, 5x9, 5x6, 5x1, 3x6, and 3x1 series CPUs have Intel 64 enabled, as do the Core 2 CPUs, as will future Intel CPUs for workstations or servers. Intel 64 is also present in the last members of the Celeron D line.

The first Intel mobile processor
Mobile processor

A mobile processor is a Central processing unit designed to save Electric power. It is found in mobile computers and cellphones.A CPU chip designed for portable computers, it is typically housed in a smaller chip package, but more importantly, in order to run cooler, it uses lower voltages than its desktop computer counterpart and has more...
 implementing 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
Pentium M

The Pentium M brand refers to only two single-core 32-bit x86 microprocessors introduced in March 2003 , and forming a part of the Intel Centrino platform....
, Celeron M, Mobile Pentium 4
Pentium 4

The Pentium 4 brand refers to Intel's line of single-core mainstream Desktop computer and laptop central processing units introduced on November 20, 2000 ....
) implements Intel 64.

The following processors implement the Intel 64 architecture:
  • Intel NetBurst
    NetBurst

    The Intel NetBurst Microarchitecture, called P68 inside Intel, was the successor to the Intel P6 microarchitecture in the x86 family of central processing units made by Intel....
     microarchitecture
    • Intel Xeon (some models since "Nocona")
    • Intel Celeron D (some models since "Prescott")
    • Intel Pentium 4
      Pentium 4

      The Pentium 4 brand refers to Intel's line of single-core mainstream Desktop computer and laptop central processing units introduced on November 20, 2000 ....
       (some models since "Prescott")
    • Intel Pentium D
      Pentium D

      The Pentium D brand refers to two series of desktop dual-core 64-bit x86 CPU with the NetBurst microarchitecture manufactured by Intel Corporation....
    • Intel Pentium Extreme Edition
  • Intel Core microarchitecture
    Intel Core microarchitecture

    The Intel Core microarchitecture is a multi-core central processing unit microarchitecture unveiled by Intel in Q1 2006. It is based around an updated version of the Intel Core core and could be considered the latest iteration of the Intel P6 microarchitecture, which traces its history back to the 1995 Pentium Pro....
    • Intel Xeon (all models since "Woodcrest")
    • Intel Core 2
      Intel Core 2

      The Core 2 brand refers to a range of Intel's consumer 64-bit single- and dual-core and 2x2 Multi-Chip Module quad-core CPUs with the x86-64 instruction set, based on the Intel Core microarchitecture, derived from the 32-bit dual-core Intel Core laptop processor....
       (Including Mobile processors since "Merom")
    • Intel Pentium Dual Core (E2140, E2160, E2180, E2200, E2220, E5200, T2310, T2330, T2370, and T2390)
    • Intel Celeron (Celeron 4x0; Celeron M 5xx)
  • Intel Atom microarchitecture
    • Intel Atom
      Intel Atom

      Intel Atom is the brand name for a line of x86 and x86-64 CPUs from Intel, previously List of Intel codenames Silverthorne and Diamondville processors, designed for a 45 nm CMOS process and intended for use in MIDs, smart phones and ultra-mobile PCs meant for portable and low-power applications....
       200 series
      List of Intel Atom microprocessors

      The Intel Atom is Intel's line of low-power x86 microprocessors. Atom, with codenames of Silverthorne and Diamondville, was first announced on March 2, 2008....
    • Intel Atom
      Intel Atom

      Intel Atom is the brand name for a line of x86 and x86-64 CPUs from Intel, previously List of Intel codenames Silverthorne and Diamondville processors, designed for a 45 nm CMOS process and intended for use in MIDs, smart phones and ultra-mobile PCs meant for portable and low-power applications....
       300 series
      List of Intel Atom microprocessors

      The Intel Atom is Intel's line of low-power x86 microprocessors. Atom, with codenames of Silverthorne and Diamondville, was first announced on March 2, 2008....
  • Intel Nehalem microarchitecture
    • Intel Core i7
      Intel Core i7

      Intel Core i7 is a family of three Intel desktop x86-64 processors, the first processors released using the Intel Nehalem and the successor to the Intel Core 2 family....


Other x86-64 implementations

  • VIA Technologies
    VIA Technologies

    VIA Technologies is a Taiwanese manufacturer of integrated circuits, mainly motherboard chipsets, Central processing unit, and computer memory, and is part of the Formosa Plastics Group....
     Isaiah microarchitecture
    • VIA Nano
      VIA Nano

      The VIA Nano is a 64-bit central processing unit for personal computers released by VIA Technologies in 2008 after five years of developmentby its CPU division, Centaur Technology....


Differences between AMD64 and Intel 64

There are a few differences between the two instruction sets. Compilers generally produce binaries that are compatible with both (that is, compatible with the subset of X86-64 that is common to both AMD64 and Intel 64), making these differences mainly of interest to developers of compilers and operating systems.

Recent implementations

  • Intel 64's BSF and BSR instructions act differently when the source is 0 and the operand size is 32 bits. The processor sets the zero flag and leaves the upper 32 bits of the destination undefined.


  • Intel 64 lacks the ability to save and restore a reduced (and thus faster) version of the floating-point state (involving the FXSAVE and FXRSTOR instructions).


  • Intel 64 lacks some model-specific registers that are considered architectural to AMD64. These include SYSCFG, TOP_MEM, and TOP_MEM2.


  • AMD64 requires a different microcode update format and control MSRs while Intel 64 implements microcode
    Microcode

    Microcode is a layer of lowest-level instructions involved in the implementation of machine code instructions in many computers and other processors; it resides in a special high-speed memory and translates machine instructions into sequences of detailed circuit-level operations....
     update unchanged from their 32-bit only processors.


  • AMD64 originally lacked the MONITOR and MWAIT instructions, used by operating systems to better deal with Intel's Hyper-threading
    Hyper-threading

    Hyper-threading is Intel trademarked term for its simultaneous multithreading implementation in their Pentium 4, Intel Atom, and Intel Core i7 CPUs....
     feature and also to enter specific low power states.


  • AMD64 systems allow the use of the AGP aperture as an IOMMU
    IOMMU

    In computing, an input/output memory management unit is a memory management unit that connects a direct memory access-capable I/O computer bus to the main memory....
    . Operating systems can take advantage of this to let normal PCI devices DMA to memory above 4 GB. Intel 64 systems require the use of bounce buffers, which are slower.


  • Intel 64 allows SYSCALL and SYSRET only in IA-32e mode (not in compatibility mode). It allows SYSENTER and SYSEXIT in both modes.
  • AMD64 lacks SYSENTER and SYSEXIT in both sub-modes of long mode
    Long mode

    In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-mode....
    .


  • Near branches with the 66H (operand size) prefix behave differently. Intel 64 clears only the top 32 bits, while AMD64 clears the top 48 bits.


  • More recent AMD64 processors support 1GB pages.


  • Intel CPUs based on the Conroe microarchitecture have two major performance bottlenecks: they don't use Intel's "Macrofusion" technology which allows for faster reading from the instruction (L1) cache; and they address the additional registers less efficiently than AMD processors. This leads to a performance degradation compared to AMD64 when some Core 2 Duo models are in long mode.


Older implementations

  • Early AMD64 processors lacked the CMPXCHG16B instruction, which is an extension of the CMPXCHG8B instruction present on most post-486
    Intel 80486

    The Intel i486, otherwise known as the 80486, was the first tightly pipeline x86 design. Introduced in 1989, it was also the first x86 chip to use more than a million transistors, due to a large on-chip cache and an integrated floating point unit....
     processors. Similar to CMPXCHG8B, CMPXCHG16B allows for atomic operation
    Atomic operation

    An atomic operation in computer science refers to a set of Instruction s that can be combined so that they appear to the rest of the system to be a single operation with only two possible outcomes: success or failure....
    s on 128-bit double quadword (or oword) data types. This is useful for parallel algorithms that use compare and swap on data larger than the size of a pointer, common in lock-free and wait-free algorithms. Without CMPXCHG16B one must use workarounds, such as a critical section
    Critical section

    In concurrent programming a critical section is a piece of code that accesses a shared resource that must not be concurrently accessed by more than one thread of execution....
     or alternative lock-free approaches.


  • Early Intel CPUs with Intel 64 lacked LAHF and SAHF instructions available in AMD64 until introduction of Pentium 4 G1 step in December 2005. LAHF and SAHF are load and store instructions, respectively, for certain status flags. These instructions are used for virtualization and floating-point condition handling.


  • Early Intel CPUs with Intel 64 also lack the NX bit
    NX bit

    The NX bit, which stands for No eXecute, is a technology used in CPUs to segregate areas of memory for use by either storage of processor instructions or for storage of data, a feature normally only found in Harvard architecture processors....
     (No Execute bit) of the AMD64 architecture. The NX bit marks memory pages as non-executable, allowing protection against many types of malicious code.


  • Original AMD64 implementations allowed access only to 1 TB (1,099,511,627,776 bytes) of physical memory, however, recent AMD64 implementations now provide 256 TB (281,474,976,710,656 bytes) of physical address space (with planned expansion to 4 PB [4,503,599,627,370,496 bytes]).


  • Original Intel 64 implementations allowed access only to 64 GB (68,719,476,736 bytes) of physical memory, however, recent Intel 64 implementations now provide 1 TB (1,099,511,627,776 bytes) of physical address space.


Operating system compatibility

The following operating systems and releases support the x86-64 architecture by running in long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-mode....
:

Windows

x64 editions of Microsoft Windows client and server, Windows XP Professional x64 Edition and Windows Server 2003
Windows Server 2003

Windows Server 2003 is a Server operating system produced by Microsoft. Introduced on 24 April 2003 as the successor to Windows 2000 Server, it is considered by Microsoft to be the cornerstone of its Windows Server System line of business server products....
 SP1 x64 Edition were released in March 2005. Internally they are actually the same build (5.2.3790.3959 SP2), 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
Windows Vista

Windows Vista is one member in a family of operating systems developed by Microsoft for use on personal computers, including home and business Desktop computer, laptops, Tablet PCs, and media center PCs....
, which also has many different versions, was released in January 2007. Windows for x64 has the following characteristics:
  • 8 TB (8,796,093,022,208 bytes) of "user mode" virtual memory address space per process. A 64-bit program can use all of this, subject of course to backing store limits on the system. This is a 4096-fold increase over the default 2 GB (2,147,483,648 bytes) user-mode virtual address space offered by 32-bit Windows.
  • 8 TB (8,796,093,022,208 bytes) of kernel mode virtual address space for the operating system. Again, this is a 4096-fold increase over 32-bit Windows versions. The increased space is primarily of benefit to the file system cache and kernel mode "heaps" (non-paged pool and paged pool).
    • Interestingly the total address space is limited to 16 TB (17,592,186,044,416 bytes) due to early AMD64 lacking a CMPXCHG16B instruction.
  • Ability to use up to 128 GB
    Gigabyte

    Gigabyte is an SI prefix-multiple of the unit byte for Computer data storage. Since the giga- prefix means 109, gigabyte means 1,000,000,000 bytes ....
     (137,438,953,472 bytes; Windows XP/Vista) or 1 TB
    Terabyte

    A terabyte is a measurement term for computer storage. The value of a terabyte based upon a decimal radix is defined as one 1000000000000 bytes, or 1000 gigabytes....
     (1,099,511,627,776 bytes; Windows Server 2003) of random access memory (RAM).
  • LLP64
    64-bit

    64-bit CPUs have existed in supercomputers since the 1960s and in RISC-based computer workstation and Server s since the early 1990s. In 2003 they were introduced to the mainstream personal computer arena, in the form of the x86-64 and 64-bit PowerPC processor architectures....
     data model: "int" and "long" types are still 32 bits wide, while pointers and types derived from pointers are 64 bits wide.
  • Kernel mode device drivers must be 64-bit versions; there is no way to run 32-bit kernel-mode executables within the 64-bit operating system. User mode device drivers can be either 32 bit or 64 bit.
  • Ability to run existing 32-bit applications (.exe's) and dynamic link libraries (.dll's). A 32-bit program, if linked with the "large address aware" option, can use up to 4 GB (4,294,967,296 bytes) of virtual address space, as compared to the default 2 GB (2,147,483,648 bytes; optional 3 GB [3,221,225,472 bytes] with /3GB boot.ini option and "large address aware" link option) offered by 32-bit Windows.
  • 16-bit DOS and Windows (Win16) applications will not run on x64 versions of Windows due to removal of NTVDM.
  • Full implementation of the NX (No Execute) page protection feature. This is also implemented on recent 32-bit versions of Windows when they are started in PAE mode.
  • Instead of FS segment descriptor on x86 versions of the Windows NT
    Windows NT

    Windows NT is a family of operating systems produced by Microsoft, the first version of which was released in July 1993. It was originally designed to be a powerful high-level-language-based, processor-independent, multiprocessing, multiuser operating system with features comparable to Unix....
     family, GS segment descriptor is used to point to two operating system defined structures: Thread Information Block (NT_TIB) in user mode and Processor Control Region (KPCR) in kernel mode. Thus, for example, in user mode GS:0 is the address of the first member of the Thread Information Block. Maintaining this convention made the x64 port easier, but required AMD to retain the function of the FS and GS segments in long mode — even though segmented addressing per se is not really used by any modern operating system.
  • Early reports claimed that the operating system scheduler would not save and restore the x87 FPU machine state across thread context switches. Observed behavior shows that this is not the case: the x87 state is saved and restored, except for kernel-mode-only threads. The most recent documentation available from Microsoft states that the x87/MMX/3DNow! instructions may be used in long mode.
  • Some components like Microsoft Jet Database Engine
    Microsoft Jet Database Engine

    The Microsoft Jet Database Engine is a database engine on which several Microsoft products were built. A database engine is the underlying component of a database, a collection of information stored on a computer in a systematic way....
     and Data Access Objects
    Data Access Objects

    Data Access Objects is a general programming interface for database access on Microsoft Windows systems and should not be confused with the Data Access Object design pattern used in object-oriented software design....
     will not be ported to 64-bit architectures such as x86-64 and IA-64.
  • Microsoft Visual Studio allows you to build an application that is targeted to the X86-64 native environment. Such an unmanaged application is only able to run on top of 64-bit versions of the Windows operating system. A 64-bit version of Windows is only able to run on top of 64-bit hardware. The same application can be built to run on top of 32-bit versions of Windows on top of either 32- or 64-bit hardware. On 64-bit hardware, the 32-bit application requires the WoW64
    WOW64

    WoW64 is a subsystem of the Microsoft Windows operating system that is capable of running 32-bit applications and is included on all 64-bit versions of Windows ? including Windows 2000, Windows XP Professional x64 Edition, IA-64 and x86-64 versions of Windows Server 2003, 64-bit versions of Windows Vista and Windows Server 2008, as well as 6...
     (Windows-on-Windows) adaptation layer, which automatically loads when the application is launched.


Linux


Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
 was the first operating system kernel to run the x86-64 architecture in long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-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
SUSE Linux

SUSE is a major retail operating system, produced worldwide and supported by Novell, Inc. SUSE is also a founding member of the Desktop Linux Consortium....
, Mandriva
Mandriva Linux

Mandriva Linux is an operating system created by Mandriva . It uses the RPM Package Manager. The product lifetime of Mandriva Linux releases is 18 months for base updates and 12 months for desktop updates ....
 and Debian GNU/Linux
Debian

Debian GNU/Linux is one of the most popular and influential computer operating systems composed of free software and open source software....
 package both 32-bit and 64-bit systems on a single DVD-ROM image to allow automatic selection of the best software during installation. Other distributions, such as Fedora
Fedora (operating system)

Fedora is an RPM Package Manager-based, general purpose operating system built on top of the Linux kernel, developed by the community-supported Fedora Project and sponsored by Red Hat....
 and Ubuntu, are available in a version compiled for 32-bit and one compiled for x86-64 architecture.

64-bit Linux allows up to 128 TB (140,737,488,355,328 bytes) of address space for individual processes, and can address approximately 64 TB (70,368,744,177,664 bytes) of physical memory, subject to processor and system limitations.

Mac OS X

Mac OS X v10.5
Mac OS X v10.5

Mac OS X version 10.5 "Leopard" is the sixth Software version of Mac OS X, Apple Inc. desktop and server operating system for Apple Macintosh computers, and the successor to Mac OS X v10.4 "Tiger"....
 supports 64-bit GUI applications using Cocoa
Cocoa (API)

Cocoa is one of Apple Inc.'s native object-oriented application program environment for the Mac OS X operating system. It is one of four major Application programming interfaces available for Mac OS X; the others are Carbon , POSIX , and Java platform....
, Quartz
Quartz (graphics layer)

Quartz specifically refers to a pair of Mac OS X technologies, each part of the Core Graphics framework: Quartz 2D and Quartz Compositor. It includes both a 2D renderer in Core Graphics and the composition engine that sends instructions to the graphics card....
, OpenGL
OpenGL

OpenGL is a standard specification defining a cross-language cross-platform Application programming interface for writing applications that produce 2D computer graphics and 3D computer graphics....
 and X11 on 64-bit Intel-based machines, as well as on 64-bit PowerPC
PowerPC

PowerPC is a RISC instruction set architecture created by the 1991 Apple Inc.?IBM?Motorola alliance, known as AIM alliance. Originally intended for personal computers, PowerPC CPUs have since become popular embedded system and high-performance processors....
 machines. All non-GUI libraries and frameworks also support 64-bit applications on those platforms. The kernel is 32-bit
32-bit

The range of integer values that can be stored in 32 bits is 0 through 4,294,967,295 or -2,147,483,648 through 2,147,483,647 using two's complement encoding....
.

Future: Mac OS X v10.6
Mac OS X v10.6

Mac OS X 10.6 Snow Leopard is an Apple Inc. operating system being developed to succeed Mac OS X v10.5. Apple CEO Steve Jobs announced Snow Leopard at WWDC on 9 June 2008, saying the software would ship "about a year" after the announcement....
 Snow Leopard will be the first Apple OS to run on a 64-bit kernel. Initial reports indicate that Snow Leopard has a "32-bit compatibility mode" to deal with applications that depend on a 32-bit kernel.

Mac OS X v10.4.7 and higher versions of Mac OS X v10.4
Mac OS X v10.4

Mac OS X version 10.4 ?Tiger? was the fifth Software version of Mac OS X, Apple Inc. desktop and server operating system for Macintosh computers....
 run 64-bit command-line tools using the POSIX and math libraries on 64-bit Intel-based machines, just as all versions of Mac OS X v10.4 and higher run them on 64-bit PowerPC machines. No other libraries or frameworks work with 64-bit applications in Mac OS X v10.4.

BSD


FreeBSD
FreeBSD
FreeBSD

FreeBSD is a Unix-like free software operating system descended from AT&T Unix via the Berkeley Software Distribution branch through the 386BSD and Berkeley Software Distribution#4.4BSD and descendants operating systems....
 first added x86-64 support under the name "amd64" 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 it as a Tier 1 platform. The 6.0-RELEASE version cleaned up some quirks with running 32-bit x86 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
Application binary interface

In computer software, an application binary interface describes the low-level interface between an application program and the operating system or an other application....
 (ABI), in the same manner as the Linux 32-bit ABI compatibility currently works.

NetBSD
x86-64 architecture support was first committed to the NetBSD
NetBSD

NetBSD is a freely redistributable, open source version of the Unix-derivative Berkeley Software Distribution computer operating system. It was the second open source BSD descendant to be formally released, after 386BSD, and continues to be actively developed....
 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
OpenBSD

OpenBSD is a Unix-like computer operating system descended from Berkeley Software Distribution , a Unix derivative developed at the University of California, Berkeley....
 has supported AMD64 since OpenBSD 3.5, released on 1 May 2004. Complete in-tree implementation of AMD64 support was achieved prior to the hardware's initial release due to AMD's loaning of several machines for the project's hackathon
Hackathon

A hackathon, a Hacker neologism, is an event when programmers meet to do collaborative computer programming. These events are typically between several days and a week in length....
 that year. OpenBSD developers have taken to the platform because of its use of the NX bit
NX bit

The NX bit, which stands for No eXecute, is a technology used in CPUs to segregate areas of memory for use by either storage of processor instructions or for storage of data, a feature normally only found in Harvard architecture processors....
, which allowed for an easy implementation of the W^X
W^X

W^X is the name of a Computer insecurity feature present in the OpenBSD operating system. It is a memory protection policy whereby every paging in a Process ' address space is either writable or executable, but not both simultaneously ....
 feature.

The code for the AMD64 port of OpenBSD also runs on Intel 64 processors which contains cloned use of the AMD64 extensions, but since Intel left out the page table NX bit in early Intel 64 processors, there is no W^X capability on those Intel CPUs; later Intel 64 processors added the NX bit under the name "XD bit". Symmetric multiprocessing
Symmetric multiprocessing

In computing, symmetric multiprocessing or SMP involves a multiprocessor computer-architecture where two or more identical processors can connect to a single shared main memory....
 (SMP) works on OpenBSD's AMD64 port, starting with release 3.6 on 1 November 2004.

MenuetOS

The 64-bit version of MenuetOS
MenuetOS

MenuetOS is an operating system with a Monolithic kernel Preemption , Real-time operating system Kernel , including video drivers, all written in FASM assembly language, for 64-bit and 32-bit x86 architecture computers, by Ville Turjanmaa....
 (M64) was released in June 2005. Although MenuetOS was originally written for 32-bit x86 architectures and released under the GPL, the 64-bit version is proprietary. It is distributed as freeware
Freeware

Freeware is computer software that is available for use at no cost or for an optional fee. Freeware is different from shareware; the latter obliges the user to pay ....
 with the source code for some components.

Solaris

Solaris
Solaris Operating System

Solaris is a Unix-based operating system introduced by Sun Microsystems in 1992 as the successor to SunOS.Solaris is known for its scalability, especially on SPARC systems, and for originating many innovative features such as DTrace and ZFS....
 10 and later releases support the x86-64 architecture. Just as with the SPARC
SPARC

SPARC is a Reduced Instruction Set Computer microprocessor instruction set Computer architecture originally designed in 1985 by Sun Microsystems....
 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 will run. The isainfo command can be used to determine if a system is running a 64-bit kernel.

DOS

It is possible to enter long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-mode....
 under DOS
DOS

DOS, short for "Disk Operating System", is a shorthand term for several closely related operating systems that dominated the IBM PC compatible market between 1981 and 1995, or until about 2000 if one includes the partially DOS-based Microsoft Windows versions Windows 95, Windows 98, and Windows Me....
 without a DOS extender, but the user must return to real mode in order to call BIOS or DOS interrupts.

It may also be possible to enter long mode
Long mode

In the x86-64 computer architecture, long mode is the mode where a 64-bit application can access the 64-bit instructions and registers, while 32-bit and 16-bit programs are executed in a compatibility sub-mode....
 with a DOS extender
DOS extender

Developed in the 1980s to cope with the memory limitations of MS-DOS and its derivatives, DOS extenders are programs which enable software to run under the protected mode environment initially introduced with the Intel 80286 processor and later expanded upon with the Intel 80386, even if the host operating system is only capable of operating...
 similar to DOS/4GW
DOS/4GW

DOS/4GW is a 32-bit DOS extender that allows DOS programs to eliminate the 640 kilobyte conventional memory limit by addressing up to 64 megabyte of extended memory on Intel 80386 and above machines....
, but more complex since x86-64 lacks virtual 8086 mode
Virtual 8086 mode

In the 80386 microprocessor and later, Virtual 8086 mode, also called virtual real mode or VM86, allows the execution of real mode applications that are protected mode#Real_mode_application_compatibility directly in protected mode....
. 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.

Industry naming conventions

Since AMD64 and Intel 64 are substantially similar, many software and hardware products use one vendor-neutral term to indicate their compatibility with both implementations. AMD's original designation for this processor architecture, "x86-64", is still sometimes used for this purpose, as is the variant "x86_64". Other companies, such as Microsoft
Microsoft

Microsoft Corporation is a multinational corporation computer technology corporation that develops, manufactures, licenses, and supports a wide range of computer software products for computing devices....
 and Sun Microsystems
Sun Microsystems

Sun Microsystems, Inc. is a multinational corporation vendor of computers, computer components, computer software, and information technology services, founded on February 24, 1982....
, use "x64" (as a contraction of "x86-64") in marketing material.

Many operating systems and products, especially those that introduced x86-64 support prior to Intel's entry into the market, use the term "AMD64" or "amd64" to refer to both AMD64 and Intel 64.

  • BSD systems such as FreeBSD
    FreeBSD

    FreeBSD is a Unix-like free software operating system descended from AT&T Unix via the Berkeley Software Distribution branch through the 386BSD and Berkeley Software Distribution#4.4BSD and descendants operating systems....
    , NetBSD
    NetBSD

    NetBSD is a freely redistributable, open source version of the Unix-derivative Berkeley Software Distribution computer operating system. It was the second open source BSD descendant to be formally released, after 386BSD, and continues to be actively developed....
     and OpenBSD
    OpenBSD

    OpenBSD is a Unix-like computer operating system descended from Berkeley Software Distribution , a Unix derivative developed at the University of California, Berkeley....
     refer to both AMD64 and Intel 64 under the architecture name "amd64".


  • Debian
    Debian

    Debian GNU/Linux is one of the most popular and influential computer operating systems composed of free software and open source software....
    , Ubuntu, and Gentoo
    Gentoo Linux

    Gentoo is a computer operating system built on top of the Linux Kernel and based on the Portage package management system. It is distributed as Free software....
     refer to both AMD64 and Intel 64 under the architecture name "amd64".


  • Fedora
    Fedora (operating system)

    Fedora is an RPM Package Manager-based, general purpose operating system built on top of the Linux kernel, developed by the community-supported Fedora Project and sponsored by Red Hat....
     PackageKit
    PackageKit

    PackageKit is a suite of software applications designed to provide a consistent and high-level front end for a number of different package management systems....
     and openSUSE
    OpenSUSE

    openSUSE, , is a general purpose operating system developed by the openSUSE Project. After acquiring SUSE Linux in January 2004, Novell decided to release the SUSE Linux Professional product as a 100% open source project, involving the community in the development process....
     refers to 64-bit architecture as "x86_64".


  • Java Development Kit
    Java Development Kit

    The Java Development Kit is a Sun Microsystems product aimed at Java developers. Since the introduction of Java, it has been by far the most widely used Java Software development kit....
     (JDK): The name "amd64" is used in directory names containing x86-64 files.


  • Mac OS X
    Mac OS X

    Mac OS X is a line of computer operating systems developed, marketed, and sold by Apple Inc., and since 2002 has been included with all new Macintosh computer systems....
    : Apple refers to 64-bit architecture as "x86_64", as noted with the Terminal command arch and in their developer documentation.


  • Microsoft Windows
    Microsoft Windows

    Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
    : 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", in contrast to "i386" in 32-bit versions.


  • Solaris: The isalist command in Sun's Solaris operating system identifies both AMD64- and Intel 64–based systems as "amd64".


See also

  • NX bit
    NX bit

    The NX bit, which stands for No eXecute, is a technology used in CPUs to segregate areas of memory for use by either storage of processor instructions or for storage of data, a feature normally only found in Harvard architecture processors....


External links

  • (PDF)
  • - technical talk by the architect of AMD64 (), and ()
  • Porting to 64-bit GNU/Linux Systems, by Andreas Jaeger from GCC Summit
    GCC Summit

    The GCC Summit is an annual conference for developers of the GNU Compiler Collection and related free software technologies. The conference is a 3-day event and has been held each year since 2003 in Ottawa, Canada....
     2003 . An excellent paper explaining almost all practical aspects for a transition from 32-bit to 64-bit.