Questions tagged [64-bit]

A 64-bit architecture is usually a system where addresses (pointers) are 64 bits wide. Sometimes, it can mean a system where the “natural” size for integer computations (the word size) is 64 bits.

The term 64-bit is used for architectures where the address bus and other data units, like the data bus or CPU registers, are 64 bits wide.

64-bit processor architectures include:

  • x86-64 , often known as AMD64, an evolution of 32-bit x86 PC processors by AMD and Intel, found in many server and desktop computers;
  • DEC Alpha, a now-discontinued architecture that was popular on workstations in the 1990s;
  • ppc64, a 64-bit evolution of the PowerPC/POWER processor;
  • SPARC v9 (Ultrasparc and sparc64), 64-bit evolutions of the Sparc architecture;
  • Itanium , also known as IA-64, an architecture by Intel that is not related to IA-32 (which is the name for later generations of x86 processors)
  • MIPS64 , a 64-bit version of the MIPS architecture;
  • ARMv8, an upcoming 64-bit version of the ARM architecture

In C and other languages such as C++ and Objective-C with a similar set of machine integer types including int, long and long long, implementations differ as to which types are 32-bit and which types are 64-bit. Windows follows a model called IL32P64: int and long are both 32-bit, long long (if available) and pointers are 64-bit. On the other hand, most Unix-like systems including Linux and Mac OS X follow the I32LP64 model: int is 32-bit, long and long long and pointers are 64-bit.

6082 questions
76
votes
11 answers

Infamous assembly binding error

I really need help on this because I lost my hopes to correct the problem. I am using Office Communications Server 64bit libraries. There are 3 dlls I use in the project, Microsoft.Rtc.Collaboration.dll, Microsoft.Rtc.Internal.Media.dll and…
Élodie Petit
  • 5,774
  • 6
  • 50
  • 88
76
votes
7 answers

Is there any "standard" htonl-like function for 64 bits integers in C++?

I'm working on an implementation of the memcache protocol which, at some points, uses 64 bits integer values. These values must be stored in "network byte order". I wish there was some uint64_t htonll(uint64_t value) function to do the change, but…
ereOn
  • 53,676
  • 39
  • 161
  • 238
75
votes
5 answers

How do I tell if my application is running as a 32-bit or 64-bit application?

How do I tell if my application (compiled in Visual Studio 2008 as Any CPU) is running as a 32-bit or 64-bit application?
Redwood
  • 66,744
  • 41
  • 126
  • 187
69
votes
17 answers

64 bit ntohl() in C++?

The man pages for htonl() seem to suggest that you can only use it for up to 32 bit values. (In reality, ntohl() is defined for unsigned long, which on my platform is 32 bits. I suppose if the unsigned long were 8 bytes, it would work for 64 bit…
Tom
  • 21,468
  • 6
  • 39
  • 44
68
votes
7 answers

A simple "Hello World" needs 10G virtual memory on a 64-bit machine vs 1G at 32-bit?

Running a simple Java program on our production machine, I noticed that this program eats up more 10G virt. I know that virtual memory is not that relevant, but at least I would like to understand why this is needed. public class Main { public…
user3246431
  • 922
  • 1
  • 7
  • 12
66
votes
9 answers

Fast computing of log2 for 64-bit integers

A great programming resource, Bit Twiddling Hacks, proposes (here) the following method to compute log2 of a 32-bit integer: #define LT(n) n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n static const char LogTable256[256] = { -1, 0, 1, 1, 2, 2,…
Desmond Hume
  • 8,037
  • 14
  • 65
  • 112
65
votes
24 answers

Detect whether current Windows version is 32 bit or 64 bit

Believe it or not, my installer is so old that it doesn't have an option to detect the 64-bit version of Windows. Is there a Windows DLL call or (even better) an environment variable that would give that information for Windows XP and…
Clay Nichols
  • 11,848
  • 30
  • 109
  • 170
65
votes
3 answers

How to Compile 32-bit Apps on 64-bit Ubuntu?

I'm trying to compile a 32-bit C application on Ubuntu Server 12.04 LTS 64-bit using gcc 4.8. I'm getting linker error messages about incompatible libraries and skipping -lgcc. What do I need to do to get 32 bit apps compiled and linked?
BSalita
  • 8,420
  • 10
  • 51
  • 68
65
votes
16 answers

How do I install SciPy on 64 bit Windows?

How do I install SciPy on my system? For the NumPy part (that SciPy depends on) there is actually an installer for 64 bit Windows: numpy-1.3.0.win-amd64-py2.6.msi (is direct download URL, 2310144 bytes). Running the SciPy superpack installer results…
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
65
votes
3 answers

Visual Studio 2012 64 bit?

I know that in visual studio 2010 there wasn't 64 bit version. Is there 64 bit version for vs2012?
liran63
  • 1,300
  • 2
  • 15
  • 17
65
votes
6 answers

What is the difference between x64 and IA-64?

I was on Microsoft's website and noticed two different installers, one for x64 and one for IA-64. Reference:Installing the .NET Framework 4.5, 4.5.1 My understanding is that IA-64 is a subclass of x64, so I'm curious why it would have a separate…
James Oravec
  • 19,579
  • 27
  • 94
  • 160
64
votes
4 answers

What's sizeof(size_t) on 32-bit vs the various 64-bit data models?

On a 64-bit system, sizeof(unsigned long) depends on the data model implemented by the system, for example, it is 4 bytes on LLP64 (Windows), 8 bytes on LP64 (Linux, etc.). What's sizeof(size_t) supposed to be? Does it vary with data model like…
anonymous
64
votes
4 answers

Difference between x86, x32, and x64 architectures?

Please explain the difference between x86, x32 and x64? Its a bit confusing when it comes to x86 and x32 because most of the time 32-bit programs run on x86...
getjish
  • 817
  • 1
  • 7
  • 6
63
votes
9 answers

What is a good 64bit hash function in Java for textual strings?

I'm looking for a hash function that: Hashes textual strings well (e.g. few collisions) Is written in Java, and widely used Bonus: works on several fields (instead of me concatenating them and applying the hash on the concatenated string) Bonus:…
ripper234
  • 222,824
  • 274
  • 634
  • 905
62
votes
5 answers

How can I have a 64-bit integer in PHP?

How can I have a 64-bit integer in PHP? It seems like it is not by a config file, but rather it might be a compile-time option, and it depends on the platform.
nonopolarity
  • 146,324
  • 131
  • 460
  • 740