32bit-64bit

In LINUX determine if a .a library/archive 32-bit or 64-bit?

坚强是说给别人听的谎言 提交于 2019-12-03 02:59:42
问题 We distribute in Linux a static lib in both 64-bit and 32-bit versions. When troubleshooting a customer, I would like my diagnostic shell script to quickly eliminate the issue by checking the .a archive file to detetmine whether it is 32 or 64 bit. The methods that occur to me are less than elegant: extract a .o member and ask the "file" command (e.g., ELF 32-bit etc) start including a dummy member coded to indicate, e.g. 32bit.o/64bit.o and use "ar -t" to check I have tried "strings xyz.a |

How do I use a 32-bit ODBC driver on 64-bit Server 2008 when the installer doesn't create a standard DSN?

心已入冬 提交于 2019-12-03 01:58:40
问题 I ran into an issue with some third party software that we use to track software license usage in our computer labs. We recently migrated the app to 64-bit Server 2008 after receiving assurances from the company that it was compatible and running some preliminary tests that showed that the app worked in the 64-bit environment. Unfortunately the person doing the testing didn't test the functionality of a couple of apps that I have that rely on accessing the data to do both live- and post

CorFlags says my .NET-Program runs as 64bit while DumpBin means it is 32bit

こ雲淡風輕ζ 提交于 2019-12-02 23:33:32
问题 I created a project and compiled it as Any CPU . on x64-Windows. As I have trouble to reference that assembly from my code I checked the runtime and the target-plattform: As you can see the target plattform is x64 when running on an x64-OS (as mine). I checked DumpBin also: PE signature found File Type: EXECUTABLE IMAGE FILE HEADER VALUES 14C machine (x86) 3 number of sections 57A49000 time date stamp Fri Aug 05 15:09:20 2016 0 file pointer to symbol table 0 number of symbols E0 size of

Best way to call 32-bit unmanaged code from 64-bit Managed Code using a managed code wrapper

做~自己de王妃 提交于 2019-12-02 23:07:08
The frequency with which I am coming across the situation where I have to call native 32-bit code from a managed 64-bit process is increasing as 64-bit machines and applications become prevalent. I don't want to mark my applciation as 32-bit and I cannot obtain 64-bit versions of of the code that is being calling. The solution that I currently use is to create C++ COM shims that are loaded out of process to make the 32-bit calls from the 64-bit process. This COM shim solution works well and the cross process calls are handled behind the scenes by COM, which minimises the overhead of this

C++ int vs long long in 64 bit machine

感情迁移 提交于 2019-12-02 22:40:44
My computer has 64 bit processor and when I look for sizeof(int) , sizeof(long) , and sizeof(long long) , it turns out that int and long are 32 bits, and long long is 64 bit. I researched the reason, and it appears that popular assumption telling that int in C++ fits machine's word size is wrong. As I understood it is up to compiler to define what will be the size, and mine is Mingw-w64. The reason for my research was understanding that if the usage of types smaller than word size is beneficial for speed(for instance, short vs int ) or if it has negative effect. In 32 bit system, one popular

Which command to use for checking whether python is 64bit or 32bit

风格不统一 提交于 2019-12-02 22:08:17
I am not able to find any command to check if my python is compiled for 32bit system or 64bit system. I tried python and it only tells the version Also when I go to python download site they have one version of python for linux but two versions for mac i.e 32bit and 64bit. Ned Deily For Python 2.6 and above, you can use sys.maxsize as documented here : import sys is_64bits = sys.maxsize > 2**32 UPDATE: I notice that I didn't really answer the question posed. While the above test does accurately tell you whether the interpreter is running in a 32-bit or a 64-bit architecture, it doesn't and can

How to detect 32/64 platform?

痴心易碎 提交于 2019-12-02 20:30:00
问题 I need to detect if the app is running on Win32/64. Update: People are reporting that relying on the [HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0] key is not a good idea. 回答1: The code that you present in the question has a few wrinkles, but it does work correctly. I suspect that you are not actually running that code, and have made an error and somehow posted the wrong code. FWIW, you should use TOSVersion from System.SysUtils to check the bitness of the underlying platform. The

When should -m32 option of gcc be used?

删除回忆录丶 提交于 2019-12-02 20:22:42
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 -m32 option? Can we execute programs built on 32-bit systems directly on their 64-bit counterparts without any side-effects? Or are there any updates or changes required? There is no problems in running 32 bits executables on 64 bit OS (as long as 32 bit dynamic libraries are present and found). -m32 is there to compile 32 bits objects on a compiler configured to compile 64 bits objects by default

Running vbscript from batch file

萝らか妹 提交于 2019-12-02 20:18:32
I just need to write a simple batch file just to run a vbscript. Both the vbscript and the batch file are in the same folder and is in the SysWOW64 directory as the vbscript can only be execute in that directory. Currently my batch file is as follows: @echo off %WINDIR%\SysWOW64\cmd.exe cscript necdaily.vbs But the vbscript wasn't executed and just the command prompt is open. Can anyone tell me how can i execute the vbscript when i run this batch file? Thanks. You can use %~dp0 to get the path of the currently running batch file. Edited to change directory to the VBS location before running If

moving a structure from 32-bit to 64-bit in C programming language [closed]

谁说胖子不能爱 提交于 2019-12-02 19:54:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . My problem is, I want to move a structure form 32-bits space to 64-bits space. Suppose I declare same structure in 64-bits space with same fields, is there a way to copy the corresponding fields from 32-bit to 64-bit structure ? let me introduce to the actual problem, this is related to caching stuff, we have