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
4
votes
2 answers

JIT compilers and exception handling

On Windows x64, suppose there is a call chain of three functions: function A, written in C++ function B, generated by a JIT compiler function C, written in C++ A calls B which calls C, then C throws an exception caught by A. B is just straight-line…
rwallace
  • 31,405
  • 40
  • 123
  • 242
4
votes
4 answers

WindowsError: [Error 193] %1 is not a valid Win32 application in Python

I wish to import liblas module in Python 2.7 on window 64bit. If I import the module with IDLE (Python GUI) I have no problem. If I use PyScripter "PyScripter-v2.5.3-x64-Setup.exe" I get this error message. >>> import liblas Traceback (most recent…
Gianni Spear
  • 7,033
  • 22
  • 82
  • 131
4
votes
1 answer

Free Windows 64-bit C++11 compilers

I'm looking for a free compiler that can generate a 64-bit Windows binary from code that uses some C++11 features. Visual C++ Express doesn't ship with a 64-bit compiler. The classic workaround for this is to download the Windows SDK. However, SDK 7…
rwallace
  • 31,405
  • 40
  • 123
  • 242
4
votes
2 answers

Performance difference using entity framework in 32 bit and 64 bit

I'm using Entity Framework in .NET Framework 4.0 in an application. After upgrading the operating system to a 64 bit version I noticed higher CPU usage in the application. Compiling the application specifically for x86 (instead of any CPU as before)…
4
votes
0 answers

PyGTK cannot find my python 2.7 folder on Windows

I am trying to install Python 2.7 PyGTK 2.24.2 on a 64 bit win 7 PC. My python is 2.7.1 [MSC v.1500 64 bit (AMD64)]. I downloaded pygtk-all-in-one-2.24.2.win32-py2.7.msi from the PyGTK website, but when running it, there is a popup window: "Python…
laishiekai
  • 841
  • 1
  • 13
  • 26
4
votes
1 answer

Invoking a x86 PowerShell Script from an x64 C# Application

I've looked through several Questions and didn't find anything that was similar enough to apply to my situation (from what I could tell). I have a x64 Application (I am not able to change architecture as per design requirements) and it needs to…
alexander.teno
  • 109
  • 1
  • 11
4
votes
1 answer

Why does an 8-byte array (C) in 64-bit Ubuntu take 16 bytes?

I've recently been (relearning) lower level CS material and I've been exploring buffer overflows. I created a basic C program that has an 8-byte array char buffer[8];. I then used GDB to explore and disassemble the program and step through its…
DJSunny
  • 1,970
  • 3
  • 19
  • 27
4
votes
2 answers

Linking both 32bit and 64bit .so files with g++ for a c++ program

I am trying to link both 32bit and 64bit .so files at the same time for a c++ program. I am using 64bit Ubuntu 12.04.1 I also don't have the source files to recompile. When I run the g++ command: g++ onlineTraining.cpp -I…
4
votes
1 answer

64bit BHO not loading inside IE 9 64

I've created a 32-bit and 64-bit version of my BHO (C++ code). The 32-bit version loads fine in IE 9 32-bit, but not the 64-bit version in IE 9 64 on WIndows 7. I have double checked that: the 64-bit DLL is indeed 64-bit code (dumpbin /headers on…
Julien
  • 5,729
  • 4
  • 37
  • 60
4
votes
1 answer

ld: symbol(s) not found for architecture x86_64 using GNU Make and clang

I am getting a ld: symbol(s) not found for architecture x86_64 error. I did do a thorough search through previous threads, but did not find a solution. As a test I am compiling a program test.cpp: #include using namespace std; int…
mareks
  • 481
  • 2
  • 5
  • 13
4
votes
4 answers

Set and Unset a specific bit in a 64-bit integer

OK, what I want is pretty straight forward : Set Nth bit of a number (= make it '1') Unset Nth bit of a number (= make it '0') This is my code so far (in the form of 2 macros) : #define SETBIT(X,Y) X|=(1ULL<<(Y)) #define UNSETBIT(X,Y) …
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
4
votes
1 answer

invalid access to memory location - managed to unmanaged code

I have this code in c++ which I exported by a dll: typedef struct { unsigned short major; unsigned short minor; } Version; EXPORTED_FUNC Result Init(Version *version, char *file); extern "C" Result Init(Version *version, char *file) { if…
gln
  • 1,011
  • 5
  • 31
  • 61
4
votes
2 answers

DLLImport with odbc32 on 64 bit system

I'm trying to get a list of ODBC data sources on a 64 bit Windows 8 system with VS Express 2012 (C#) using SQLDatasources as described in this thread here, I'm referring to the reply by Stephan Keller. His code compiles fine and runs without any…
Thomas
  • 1,160
  • 3
  • 16
  • 34
4
votes
2 answers

64-bit ASP.NET MVC App won't run

First of all, I've previously managed to get one of my 64-bit test web apps to run on this machine (back when I was prototyping for this project). I've been working for a few weeks in 32 bit and realized I need to switch the app over to 64-bit and…
Pete
  • 6,585
  • 5
  • 43
  • 69
4
votes
1 answer

_AMD64_ not defined in VS2010

I created a new c++ project in VS2010. I added x64 as a new solution platform. I tried setting "copy settings from" to both "Win32" and "empty", but neither worked. _AMD64_ is not defined when I select x64 as the platform. Shouldn't it be? Is there…
Baruch
  • 20,590
  • 28
  • 126
  • 201