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
685
votes
29 answers

Android Studio: /dev/kvm device permission denied

When I try to run my Android app on an emulator I get this error: /dev/kvm permission denied. I checked the permissions and added the user I am currently logged in with to the kvm group. What is wrong?
florian.R
  • 6,851
  • 3
  • 10
  • 4
605
votes
13 answers

How can I tell if I'm running in 64-bit JVM or 32-bit JVM (from within a program)?

How can I tell if the JVM in which my application runs is 32 bit or 64-bit? Specifically, what functions or properties I can used to detect this within the program?
BobMcGee
  • 19,824
  • 10
  • 45
  • 57
575
votes
8 answers

What does the Visual Studio "Any CPU" target mean?

I have some confusion related to the .NET platform build options in Visual Studio 2008. What is the "Any CPU" compilation target, and what sort of files does it generate? I examined the output executable of this "Any CPU" build and found that they…
galets
  • 17,802
  • 19
  • 72
  • 101
541
votes
26 answers

"An attempt was made to load a program with an incorrect format" even when the platforms are the same

I'm calling functions from a 32-bit unmanaged DLL on a 64-bit system. What I get is: BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) At first, I had my projects set to…
David Brown
  • 35,411
  • 11
  • 83
  • 132
370
votes
16 answers

How can I determine if a .NET assembly was built for x86 or x64?

I've got an arbitrary list of .NET assemblies. I need to programmatically check if each DLL was built for x86 (as opposed to x64 or Any CPU). Is this possible?
Judah Gabriel Himango
  • 58,906
  • 38
  • 158
  • 212
304
votes
7 answers

Visual Studio 64 bit?

Is there any 64 bit Visual Studio at all? Why not?
Sash
  • 3,525
  • 3
  • 19
  • 17
295
votes
31 answers

How to detect Windows 64-bit platform with .NET?

In a .NET 2.0 C# application I use the following code to detect the operating system platform: string os_platform = System.Environment.OSVersion.Platform.ToString(); This returns "Win32NT". The problem is that it returns "Win32NT" even when running…
Marc
  • 9,012
  • 13
  • 57
  • 72
259
votes
5 answers

System.BadImageFormatException: Could not load file or assembly

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>InstallUtil.exe C:\_PRODUKCIJA\D ebug\DynamicHtmlTool.exe Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Exception…
senzacionale
  • 20,448
  • 67
  • 204
  • 316
179
votes
20 answers

The application was unable to start correctly (0xc000007b)

I have a client/server app which I have been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a friend. When I build my app and try to run or debug it (whether in the Delphi IDE or from Windows File manager), it…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
158
votes
8 answers

What is the bit size of long on 64-bit Windows?

Not to long ago, someone told me that long are not 64 bits on 64 bit machines and I should always use int. This did not make sense to me. I have seen docs (such as the one on Apple's official site) say that long are indeed 64 bits when compiling for…
user34537
157
votes
10 answers

Unable to install Android Studio in Ubuntu

I'm using Ubuntu Gnome 14.04, and I have Java 8 installed (both the JDK and the JRE). When I was installing Android Studio everything worked, but a message appeared saying: Unable to run mksdcard SDK tool How can I install Android Studio…
Carlos Carrizales
  • 2,340
  • 3
  • 18
  • 24
154
votes
8 answers

C# - How to get Program Files (x86) on Windows 64 bit

I'm using: FileInfo( System.Environment.GetFolderPath( System.Environment.SpecialFolder.ProgramFiles) + @"\MyInstalledApp" In order to determine if a program is detected on a users machine (it's not ideal, but the program I'm…
Leonard H. Martin
  • 2,734
  • 4
  • 23
  • 26
149
votes
12 answers

How to find if a native DLL file is compiled as x64 or x86?

I want to determine if a native assembly is complied as x64 or x86 from a managed code application (C#). I think it must be somewhere in the PE header since the OS loader needs to know this information, but I couldn't find it. Of course I prefer to…
Ohad Horesh
  • 4,340
  • 6
  • 28
  • 45
133
votes
7 answers

How to compile a 32-bit binary on a 64-bit linux machine with gcc/cmake

Is it possible to compile a project in 32-bit with cmake and gcc on a 64-bit system? It probably is, but how do I do it? When I tried it the "ignorant" way, without setting any parameters/flags/etc, just setting LD_LIBRARY_PATH to find the linked…
dala
  • 1,975
  • 3
  • 14
  • 15
130
votes
8 answers

How to compile a 64-bit application using Visual C++ 2010 Express?

Is there a simple way to compile a 64 bit app with the 32-bit edition of Visual C++ 2010 Express? What configurations, if any, are necessary?
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
1
2 3
99 100