Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the advantages of a 64-bit processor?

Tags:

cpu

64-bit

Obviously, a 64-bit processor has a 64-bit address space, so you have more than 4 GB of RAM at your disposal. Does compiling the same program as 64-bit and running on a 64-bit CPU have any other advantages that might actually benefit programs that aren't enormous memory hogs?

I'm asking about CPUs in general, and Intel-compatible CPUs in particular.

like image 532
Mason Wheeler Avatar asked Mar 03 '09 17:03

Mason Wheeler


People also ask

What is the greatest advantage of using a 64-bit computer?

The main advantage of a 64-bit CPU is the ability to have 64-bit pointer types that allow virtual address ranges greater than 4GB in size. On a 32-bit CPU, the pointer size is (typically) 32 bits wide, allowing a pointer to refer to one of 2^32 (4,294,967,296) discrete addresses.

What is the biggest advantage of 64-bit processors over 32-bit processors?

The biggest advantage of 64-bit processors over 32-bit processors is in the amount of memory they can use. 32-bit processors have a limit of 4 GB. 64-bit processors have a theoretical limit of 16 EB. 32-bit processors use the IA-32 instruction set (also referred to as x86).

Is a 64-bit processor good?

Graphics: Aside from being able to handle more data, the 64-bit processor delivers better graphics performance. This means that your computer will be faster when launching apps, editing photos, and playing graphic-intensive games.

What is the importance of 64-bit?

Since processors use 64 bits for both addressing and data, the processor can carry twice the amount of data carried by 32-bit processors in every clock cycle. This enables the processor to handle far more data and instructions per unit of time than previous processors. More detail in 64-bit data.


Video Answer


2 Answers

There's a great article on Wikipedia about the differences and benefits of 64bit Intel/AMD cpus over their 32 bit versions. It should have all the information you need.

Some on the key differences are:

  • 16 general purpose registers instead of 8
  • Additional SSE registers
  • A no execute (NX) bit to prevent buffer overrun attacks
like image 76
Sean Avatar answered Oct 11 '22 10:10

Sean


The main advantage of a 64-bit CPU is the ability to have 64-bit pointer types that allow virtual address ranges greater than 4GB in size. On a 32-bit CPU, the pointer size is (typically) 32 bits wide, allowing a pointer to refer to one of 2^32 (4,294,967,296) discrete addresses. This allows a program to make a data structure in memory up to 4GB in size and resolve any data item in it by simply de-referencing a pointer. Reality is slightly more complex than this, but for the purposes of this discussion it's a good enough view.

A 64-bit CPU has 64-bit pointer types that can refer to any address with a space with 2^64 (18,446,744,073,709,551,616) discrete addresses, or 16 Exabytes. A process on a CPU like this can (theoretically) construct and logically address any part of a data structure up to 16 Exabytes in size by simply de-referencing a pointer (looking up data at an address held in the pointer).

This allows a process on a 64-bit CPU to work with a larger set of data (constrained by physical memory) than a process on a 32 bit CPU could. From the point of view of most users of 64-bit systems, the principal advantage is the ability for applications to work with larger data sets in memory.

Aside from that, you may get a native 64-bit integer type. A 64 bit integer makes arithmetic or logical operations using 64 bit types such as C's long long faster than one implemented as two 32-bit operations. Floating point arithmetic is unlikely to be significantly affected, as FPU's on most modern 32-bit CPU's natively support 64-bit double floating point types.

Any other performance advantages or enhanced feature sets are a function of specific chip implementations, rather than something inherent to a system having a 64 bit ALU.

like image 24
ConcernedOfTunbridgeWells Avatar answered Oct 11 '22 08:10

ConcernedOfTunbridgeWells