Questions tagged [32bit-64bit]

Issues related to the use of a 64-bit vs a 32-bit architecture including portability issues.

32bit-64bit
Filter by
Sorted by
Tagged with
186 votes
9 answers
389k views

CentOS 64 bit bad ELF interpreter

I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory ...
c11ada's user avatar
  • 4,324
149 votes
7 answers
198k views

Should I use Python 32bit or Python 64bit

I have a win7 64bit installation. Must I use Python 64bit? What are the differences between the 32bit and 64bit Python versions anyway? Do different Python packages (such as south, django, mysqldb etc)...
Jonathan Livni's user avatar
148 votes
5 answers
170k views

How to find out if an installed Eclipse is 32 or 64 bit version?

How can I find out if a specific Eclipse instance on my (Windows 7) PC is the 32-bit or 64-bit version? I've checked the About screen and the maze of dialogs one can call from there, but I didn't ...
Rabarberski's user avatar
  • 24.4k
53 votes
4 answers
23k views

what is the performance impact of using int64_t instead of int32_t on 32-bit systems?

Our C++ library currently uses time_t for storing time values. I'm beginning to need sub-second precision in some places, so a larger data type will be necessary there anyway. Also, it might be useful ...
oliver's user avatar
  • 6,418
47 votes
2 answers
25k views

What does the Python version line mean?

What does the line that's displayed when you start an instance of the Python interpreter mean? Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 So I know I have ...
Mark's user avatar
  • 5,379
33 votes
8 answers
13k views

As a programmer, what do I need to worry about when moving to 64-bit windows?

Most of my recent programming has been on 32-bit Windows using C/C++/C#/VB6 . Lately, my customers are asking if my code will run on 64-bit Windows. I'm wondering what legacy features I might be ...
jm.'s user avatar
  • 23.6k
31 votes
15 answers
12k views

Processor, OS : 32bit, 64 bit

I am new to programming and come from a non-CS background (no formal degree). I mostly program winforms using C#. I am confused about 32 bit and 64 bit.... I mean, have heard about 32 bit OS, 32 bit ...
Sandbox's user avatar
  • 8,036
27 votes
1 answer
25k views

Can I use 32bit dll or exe in 64bit python?

When I use CDLL to call 32bit dll in 32bit python, it works well. But unfortunatelly in my 64bit win7 os only installs 64bit python, when calling it turns: it is not a effective win32 app! Can I use ...
hjhnju's user avatar
  • 275
24 votes
1 answer
75k views

/usr/bin/ld: skipping incompatible foo.so when searching for foo

I am using Ubuntu 13.10 64bit and I am getting the following errors while compiling the python wrappers of vlfeat library. g++ -o _vlfeat.so ../../vl/aib.o ../../vl/generic.o ../../vl/hikmeans.o ../.....
user avatar
19 votes
4 answers
8k views

Why double in C is 8 bytes aligned?

I was reading a article about data types alignment in memory(here) and I am unable to understand one point i.e. Note that a double variable will be allocated on 8 byte boundary on 32 bit machine ...
Ravi Gupta's user avatar
  • 6,298
19 votes
1 answer
10k views

How to write assembly language hello world program for 64 bit Mac OS X using printf?

I am trying to learn writing assembly language for 64 bit Mac OS. I have no problem with 32 bit Mac OS and both 32 bit and 64 bit Linux. However, Mac OS 64 bit is different and I couldn't figure out. ...
Alfred Zhong's user avatar
  • 6,951
18 votes
6 answers
65k views

How to use Windows On-Screen Keyboard in C# WinForms

VS 2010 Developing 32-bit app that runs on 64-bit OS (Windows 7, Windows 8 - desktop app) C# .NET 4.0 WinForms I have found many threads on launching the Windows on-screen keyboard (osk.exe) from ...
Tara's user avatar
  • 841
17 votes
2 answers
38k views

Undefined symbols for architecture x86_64 - Mavericks (Yosemite, El Capitan...)

EDIT : If you fall on this post, you may want to jump directly to the answer I sent a post about my confusion earlier this morning machine type (C++ librairies) : i386 vs x86_64 But I guess I did ...
Issam T.'s user avatar
  • 1,687
10 votes
2 answers
3k views

Why does Math.Exp give different results between 32-bit and 64-bit, with same input, same hardware

I am using .NET 2.0 with PlatformTarget x64 and x86. I am giving Math.Exp the same input number, and it returns different results in either platform. MSDN says you can't rely on a literal/parsed ...
Yoshi's user avatar
  • 3,355
10 votes
3 answers
4k views

CPU Architecture Independent P/Invoke: Can the DllName or path be "dynamic"?

Is there a way to have the particular DLL referenced by a P/Invoke (DllImport) signature depend on the CPU architecture? I'm working on an application that loads a large number of method signatures ...
Cheetah's user avatar
  • 1,151
96 votes
8 answers
14k views

Why is long slower than int in x64 Java?

I'm running Windows 8.1 x64 with Java 7 update 45 x64 (no 32 bit Java installed) on a Surface Pro 2 tablet. The code below takes 1688ms when the type of i is a long and 109ms when i is an int. Why is ...
Techrocket9's user avatar
  • 2,056
35 votes
2 answers
51k views

When should -m32 option of gcc be used?

I am writing a program which if I compile on a Suse 10 32-bit system without adding the -m32 option and execute it on Suse 10 64-bit, it works fine. In this case, is it not required for me to add the ...
Jay's user avatar
  • 24.6k
23 votes
1 answer
16k views

Can 64-bit python create 32-bit Windows executables

I have a new 64-bit Windows machine and use python for various things and so would prefer to install 64-bit python. However, one of my python projects creates a Windows executable that is then run on ...
blokeley's user avatar
  • 6,886
22 votes
8 answers
49k views

Converting 32-bit Application Into 64-bit Application in C

I am presently working on converting a 32-bit application into a 64-bit application in C. This application is currently working on x86 architecture (Windows, osx, Unix, Linux). So, before starting ...
Charles Beaudoin's user avatar
19 votes
3 answers
18k views

How to enum modules in a 64bit process from a 32bit WOW process

I have a requirement to retrieve all modules of a 64bit process in a 32bit WOW process in Windows, EnumProcessModules would fail as described: If this function is called from a 32-bit application ...
Baiyan Huang's user avatar
  • 6,683
16 votes
6 answers
12k views

How can long long int exist on 32-bit machines?

I read that GCC supports the long long int type which is required to be at least 64 bits wide. But how can it make math operations with it on a CPU that is only 32 bits wide?
B.Gen.Jack.O.Neill's user avatar
16 votes
4 answers
29k views

portable way to deal with 64/32 bit time_t [duplicate]

I have some code which is built both on Windows and Linux. Linux at this point is always 32-bit but Windows is 32 and 64-bit. Windows wants to have time_t be 64-bit and Linux still has it as 32-bit. ...
MK.'s user avatar
  • 34k
15 votes
2 answers
13k views

Do I have Numpy 32 bit or 64 bit?

How do I check if my installed numpy version is 32bit or 64bit? Bonus Points for a solution which works inside a script and is system independent.
D A's user avatar
  • 3,308
14 votes
1 answer
3k views

Is it possible to use both 64 bit and 32 bit instructions in the same executable in 64 bit Linux?

A 64 bit CPU (amd64) supports 32 bit Intel instructions in the compatibility mode. Also, a 64 bit Linux installation allows running ELFs containing 32 bit instructions if the ELF header says it is a ...
rubund's user avatar
  • 7,703
13 votes
3 answers
10k views

Size of pointers: Dependent factors

I am finding difficulties in understanding the factors on which the size of pointer variables in C is dependent on. I checked few references, the only information I got until now is pointer size is ...
Vivek Maran's user avatar
  • 2,713
12 votes
2 answers
16k views

How do I build OpenSSL as 32-bit (i386) on Mac OS X?

I downloaded OpenSSL sources, and did the config, make, sudo make install trilogy. I then built my project, linking in libcrypto.a and libssl.a, but got: ld: warning: in /usr/local/ssl/lib/libcrypto....
Daryl Spitzer's user avatar
12 votes
1 answer
9k views

How to distinguish 32 bit from 64 bit java version in jnlp files

To start our legacy application, we use java WebStart via a jnlp. We would like to support 64-bit Java clients but one of our libraries is architecture dependent. We thought of doing something like: ...
Dave's user avatar
  • 1,537
9 votes
4 answers
12k views

compile 32bit code from cygwin64

I installed Cygwin64 on a win7-64 with gcc dev tools and I just noticed that it produces 64bit binaries. (Well, not that surprising :o) Is there a mean to make it producing some 32bit binaries? I am ...
Seki's user avatar
  • 11.3k
8 votes
3 answers
10k views

Utilizing a 32-bit DLL in a 64-bit process via COM

So some time ago I was investigating an issue that I knew would be coming up soon. We have a DLL that links to 32-bit versions of a certain library. There is no x64 version of this library available ...
Ed Swangren's user avatar
7 votes
4 answers
21k views

Convert from 64bit number to 32bit number

Trying a lot and just failing.. $x = 76561198005785475; I want to this number, turn into this: $y = 45519747; That is the 32bit form of it. Trying to explain with more details: http://www....
Otuyh's user avatar
  • 2,434
6 votes
2 answers
1k views

different behaviour or sqrt when compiled with 64 or 32 bits

I'm using sqrt() function from math library, when I build for 64 bit using -m64 I'm getting correct result but when I build for 32 bit I have very inconsistent behaviour. For example on 64bit ...
kanna's user avatar
  • 1,432
6 votes
3 answers
14k views

Compiling OpenCV code on a 64-bit mac

I recently inherited some OpenCV code. I installed openCV on my mac, built in in XCode, and then compiled and successfully ran my first openCV "hello world"-ish program. Now I'm trying to run the ...
Warpling's user avatar
  • 2,091
4 votes
3 answers
20k views

How to connect to a 32-bit Access Database from 64-bit JVM?

So far, when I had to connect to an 32-bit Access Database, I simply executed the application using 32-bit JVM. However, I am now developing an application that requires 64-bit JVM, but I still need ...
Pedro's user avatar
  • 4,120
3 votes
5 answers
42k views

32-bit Text drivers (Microsoft Access , Microsoft Excel and Text files ) from a 64 bit application on windows 7

Hi i have an application developed on XP with Text ODBC drivers. But when i deployed on Win 7 with office 2007, i have connection issues. <add key="SQLConnection.TextConnectionString" ...
Kiddo's user avatar
  • 5,082
2 votes
3 answers
2k views

strcmp behaviour in 32-bit and 64-bit systems

The following piece of code behaves differently in 32-bit and 64-bit operating systems. char *cat = "v,a"; if (strcmp(cat, ",") == 1) ... The above condition is true in 32-bit but false in 64-...
Nagaraju's user avatar
  • 1,863
41 votes
4 answers
55k views

Can I control the architecture (32bit vs 64bit) when building a pyinstaller executable?

Short Question Is there any way to control / guarantee the architecture (32bit vs 64bit) when building a pyinstaller executable? Background I migrated from py2exe to pyinstaller because of the lack ...
Adam Lewis's user avatar
  • 7,127
38 votes
3 answers
35k views

What causes System.BadImageFormatException when constructing System.Data.SQLite.SQLiteConnection

I've broken the code down to the smallest possible statement: Dim cn As System.Data.SQLite.SQLiteConnection And I get the following error when calling the code from a WinForm applicaiton: System....
Tim Murphy's user avatar
  • 4,892
33 votes
6 answers
29k views

64 bit version issue in react-native android app by google play store

According to https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html: In August 2019, Play store will require that new apps and app updates with native libraries ...
neomib's user avatar
  • 3,765
31 votes
4 answers
24k views

__int64 on a 32-Bit machine?

I just tried something in MSVC 2010 on my 32-bit machine here and found out that I can use __int64 in my programs - which actually work! How is that possible?
koa's user avatar
  • 319
30 votes
3 answers
17k views

printf with sizeof on 32 vs 64 platforms: how do I handle format code in platform independent manner?

I have some code that prints the amount of memory used by the program. The line is similar to this: printf("The about of RAM used is %u", anIntVariable*sizeof(double) ); where anIntVariable is an ...
SO Stinks's user avatar
  • 3,308
30 votes
5 answers
16k views

Is Visual Studio 2010 WebDev WebServer (Cassini) 64-bit compatible?

I'm now developing on Visual Studio 2008 on a 64-bit OS (Windows Server 2008 64-bit). While the apps I write are 64-bit capable, as is IIS7, the built-in ASP.NET Development Server (aka Cassini aka ...
David Boike's user avatar
  • 18.6k
30 votes
4 answers
28k views

what does macosx-version-min imply?

When I pass compiler flag -mmacosx-version-min=10.5, what does it mean? I think it implies the result binary is x86, not ppc, but is it 32 bits or 64 bits? I'm compiling on snow leopard, so default ...
Quincy's user avatar
  • 1,923
24 votes
12 answers
15k views

Can PHP tell if the server os is 64-bit?

I am dealing with Windows here. I know you can use the $_SERVER['HTTP_USER_AGENT'] variable to detect the OS of the browser viewing the page, but is the any way that PHP can detect the server's OS? ...
BLAKE's user avatar
  • 505
21 votes
6 answers
22k views

how to find if the machine is 32bit or 64bit

Is there anyway from a C prog to find whether the OS is currently running in 32bit or 64bit mode. I am using a simple program as below int main(void){ switch(sizeof(void*)){ case 4: ...
user avatar
21 votes
4 answers
17k views

Can 32-bit application and 64-bit library work together?

Can 64-bit library work in a 32-bit application? For example, my application GUI uses 32-bit Qt. And my business core is a 64-bit library. The OS is 64-bit. Can they work together and how?
user1899020's user avatar
  • 13.4k
20 votes
7 answers
45k views

How can I determine the Windows version from a VB 6 app?

I want to detect any Windows versions from 95 to Win 7. I also would like to display if the OS is 32-bit or 64-bit. That's it; it's that simple. :) What code could I use to do this from within a VB ...
SOF User's user avatar
  • 7,730
18 votes
2 answers
9k views

Java scheduler which is completely independent of system time changes

Was using Java Timer, Then switched to ScheduledExecutorService, but my problem is not fixed. As Tasks scheduled before system time change (through ntpd) are not executed on delay specified. Have no ...
YoK's user avatar
  • 14.4k
16 votes
3 answers
8k views

what is the maximum size of a PE file on 64-bit Windows?

It seems to me it's always going to be 4GB, because it uses the same size datatype (A DWORD)? Isn't a DWORD for the SizeOfImage always going to be 32-bits? Or am I mistaken about this limitation? ...
unixman83's user avatar
  • 9,709
16 votes
5 answers
17k views

How to check with Inno Setup, if a process is running at a Windows 2008 R2 64bit?

I've read the following post. My Code looks exactly the same, but does not work: Inno Setup Checking for running process I copied the example from http://www.vincenzo.net/isxkb/index.php?title=...
Christian Kuetbach's user avatar
14 votes
9 answers
26k views

Alternatives to keeping large lists in memory (python) [closed]

If I have a list(or array, dictionary....) in python that could exceed the available memory address space, (32 bit python) what are the options and there relative speeds? (other than not making a list ...
Vincent's user avatar
  • 1,617

1
2
3 4 5
10