32bit

System Architecture

How do I determine whether the currently running Mac OS X system is of 32bit or 64bit machine? ...

Apple's gcc, what's the difference between -arch i386 and -m32 ?

According to Apple's gcc 4.2.1 doc: -arch arch Compile for the specified target architecture arch. The allowable values are 'i386', 'x86_64', 'ppc' and 'ppc64'. Multiple options work, and direct the compiler to produce “universal” binaries including object code for each architecture specified with -arch. This option o...

PHP json_decode on a 32bit server

Hi, im writting a twitter mashup service. When i receive the json data, some of the twit ids are greater than 2147483647 (which is the maximum allowed integer on 32bit servers). I came up with a solution that works, which is converting the integers to strings; that way the json_decode() function won't have any problems when trying to ge...

How can I enable my 32-bit Delphi application to use 4gb of memory on 64-bit windows (via Wow64.exe)?

According to this MSDN page: WOW64 enables 32-bit applications to take advantage of the 64-bit kernel. Therefore, 32-bit applications can use a larger number of kernel handles and window handles. However, 32-bit applications may not be able to create as many threads under WOW64 as they can when running natively on x86-b...

How would I call 32bit exes in Windows 64bit with python?

I want to call a exe from python on a 64bit version of vista. I know to use subprocess, but all the 32bit apps are store in C:\Program Files (x86)\, and it doesn't like the spaces I believe. i have tried escape characters, doesn't fire, any ideas? ...

Size of pid_t, uid_t, gid_t on Linux

On Linux systems (either 32- or 64-bit), what is the size of pid_t, uid_t, and gid_t? ...

Why is a .NET x86 windows service not displayed with *32 in Task Manager?

Hi, I created a dummy windows service using .net 3.5. The service has been compiled for x86 explicitly (32BIT corflag is set). Process Explorer from SysInternals correctly identifies the process as a 32-bit process. However, task manager does not append the "*32" to the process name. Why is that? Cheers, Alex ...

Linking 32-bit library to 64-bit program

Hi! I have a 32-bit .so binary-only library and I have to generate 64-bit program that uses it. Is there a way to wrap or convert it, so it can be used with 64-bit program? ...

get the filesize of very large .gz file on a 64bit platform

According to the specifiction of gz the filesize is saved in the last 4bytes of a .gz file. I have created 2 files with dd if=/dev/urandom of=500M bs=1024 count=500000 dd if=/dev/urandom of=5G bs=1024 count=5000000 I gziped them gzip 500M 5G I checked the last 4 bytes doing tail -c4 500M|od -I (returns 512000000 as expected)...

How to check if process is still running on Windows server 2008?

We have two services: one service is 32-bit (process1) and the other is 64-bit (process2). We have code that process1 is using to check if process2 is running: HANDLE hProcess; RESET_WIN_ERRNO; hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, ProcessId); if (hProcess == NULL) { os_SetWinErr(err_code); return FALS...

"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 the Any CPU platform, so I changed them both to x86, but this error is still occurring....

How can I tell if I'm running in 64-bit JVM or 32-bit JVM?

How can I tell if the JVM my application runs in is 32 bit or 64-bit? Specifically, what function or preference do I access to detect this within the program? ...

Why will this run in 32bit, but not 64bit? (x86 vs x64 in compiler options)

I'm using the following code to iterate through and find windows containing specific strings in their title bars. I have two projects containing this identical information, yet for some reason - it works when targeted to x64, but FindWindowLike returns 0 always on x86. I need this to run in x86. I am developing this on Windows 7 x64, bu...

Process sizes and differences in behaviour on 32bit vs. 64bit Windows versions

I am investigating a strange problem with my application, where the behaviour is different on 2 versions of Windows: Windows XP (32-bit) Windows Server 2008 (64-bit) My findings are as follows. Windows XP (32-bit) When running my test scenario, the XML parser fails at a certain point during the parsing of a very large configuration...

Compiling .NET app as 32-bit only so I can use my Access DB

I keep getting this error when I try and use a MS Access database in my application: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. After Google'ing the error for a while I came to see that this is a problem when running the application in 64-bit mode. If I was to compile the app in 32-bit it wou...

Create 64 bit registry key (non-WOW64) from a 32 bit application

I have a Visual Studio installer that is creating some registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\MyApp but the registry keys it is creating are automatically appearing under Wow6432Node: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyApp How do I ignore the Wow6432Node when creating registry keys in my C# code being executed by the msi...

Python Build Problem on Mac OS 10.6 / Snow Leopard

I'm encountering a build problem for Python 2.6.4 on Snow Leopard. Mac OS X 10.6 Yonah CPU, 32-bit gcc-4.2.1 Update I Solved by removing all non-standard includes and libraries from CFLAGS (there happened to be a uuid/uuid.h in there ...). Still, it compiled despite the error describe below, with /usr/include/hfs/hfs_format.h:765 ...

64-bit unsigned to 32-bit signed

Hi. I need to convert Java long datatype (64-bit) data into legacy c++ app unsigned int (32-bit) datatype. No worries about the data loss as the data is Linux timestamp, which would take aeons to hit unsigned int limit. Any idea what transformation to apply to these numbers? Thanks in advance! P.S. - data-types example: Java - 1266...

PHP Left Shift giving two answers on two different machines

Hello, I'm very confused about behaviour of PHP's left shift function. I'm using it on two different machines (dev and hosting), and they are giving me different answers. I've tracked it down to this calculation: (-3941404251) << 5; On one machine I'm getting the answer -1570884448; on the other, I get 0. On both systems, PHP_INT_MAX ...

Release Web Binary With Both 64 and 32bit support? ASP.NET

I would like to release my app with both 32 and 64bit support. I am using elmah and SQLite. Both packages have a separate binary for 32 and 64bits. I cant add both 32 and 64bit DLL. I tried adding both 32 & 64 bit DLLs with a different filename in my bin/release folder and i get an bad image format error. (I tested by running on a Window...