32-bit

Can I make a 32-bit program with cx_Freeze if I have a 64-bit OS?

时光怂恿深爱的人放手 提交于 2019-12-01 03:28:25
I am currently running Windows 7 Home 64-bit and am working on a program that I would like to make available for both 32-bit and 64-bit Windows operating systems. When I use cx_Freeze to turn my .py to a .exe, it only allows it to be installed on 64-bit operating systems. Would I need to buy a 32-bit computer to convert it to a 32-bit program or are there a special set of commands I can use to make cx_Freeze create both a 32-bit and a 64-bit exe? from cx_Freeze import * import sys base = None if sys.platform == 'win32': base = "Win32GUI" executables = [Executable("iNTMI.py", shortcutName =

Can 32 bit and 64 bit work together?

狂风中的少年 提交于 2019-12-01 02:23:27
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? Thanks. In short: You can't link a 32-bit app to a 64-bit library. You can run a 32-bit application, using 32-bit shared libraries on a 64-bit OS (at least all the popular 32-/64-bit processors such as AMD, Intel and Sparc). But that doesn't involve any libraries. Longer answer: I was involved (on the outskirts) of some of the teams that designed the 64-bit Linux kernel for x86. There were briefly (compared

How to force py2app to run app in 32-bit mode

流过昼夜 提交于 2019-11-30 18:15:24
问题 I am trying to build an app bundle with py2app on Mac OS X 10.6. The app uses some libraries which are only compiled for 32-bit, so when the app is run there is an ImportError "no appropriate 64-bit architecture". How can I tell py2app to force the app to run in 32-bit mode? 回答1: One way is to use a 32-bit-only Python, such as the 32-bit-only versions downloadable from python.org, with py2app. Another is to set the LSArchitecturePriority to i386 and possibly ppc in the generated app bundle's

Does Java 64 bit perform better than the 32-bit version?

烂漫一生 提交于 2019-11-30 14:43:05
问题 I noticed Sun is providing a 64-bit version of Java. Does it perform better than the 32-bit version? 回答1: Define your workload and what "perform" means to you. This is sort of a running annoyance to me, as a performance geek of long standing. Whether or not a particular change "performs better" or not is dependent, first and foremost, on the workload, ie, what you're asking the program to do. 64 bit Java will often perform better on things with heavy computation loads. Java programs,

Why does an assembly program only work when linked with crt1.o crti.o and crtn.o?

谁说胖子不能爱 提交于 2019-11-30 14:01:16
I like to know how programs work so to make it as bare bones as possible I fool around with assembly. I just found out how to assemble code for x86_64 using wprintf function (found out wide chars are 32 bit). all I had to do was link to libc (-lc). I'm trying to assemble code for 32-bit doing about the same thing but I stumbled quite a bit. Eventually I used gcc to do the linking ( and changed the _start: to main:). So then I did the linking myself using ld and included crt1.o crti.o and crtn.o. Then my program worked ( it wouldn't print out anything before ) So my question is, can I do

Setting 32-bit x86 build target in Visual C# 2008 Express Edition?

早过忘川 提交于 2019-11-30 13:58:47
问题 I'm building a C# application that loads a 32-bit COM dll. The compiled application runs fine on 32-bit Windows but barfs on 64 bit Windows because it can't load the 32-bit COM. Is there a way to set a 32-bit build target in VC# 2008 Express Edition? Alternatively, is there a way to force a .NET application compiled to the AnyCPU build target to run in 32-bit mode on 64-bit Windows? 回答1: You cannot explicitly set it to 32-bit in the UI in VS Express, but apparently (I only have the

How to count leading zeros in a 32 bit unsigned integer [closed]

断了今生、忘了曾经 提交于 2019-11-30 13:45:53
Could anyone tell me please what is an efficient algorithm to count the number of leading zeroes in a 32-bit unsigned integer in C programming? This discussion assumes that your compiler either doesn't support the operation or that it doesn't produce good enough assembly. Note that both of these are unlikely nowadays so I'd recommend just using __builtin_clz for gcc or equivalent on your compiler. Note that determining which is the "best" clz algo can only be done by you. Modern processors are complicated beasts and the performance of these algorithm will heavily depend on the platform you run

Can 32 bit and 64 bit work together?

别来无恙 提交于 2019-11-30 07:55:01
问题 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? Thanks. 回答1: In short: You can't link a 32-bit app to a 64-bit library. You can run a 32-bit application, using 32-bit shared libraries on a 64-bit OS (at least all the popular 32-/64-bit processors such as AMD, Intel and Sparc). But that doesn't involve any libraries. Longer answer: I was involved (on the

#ifdef for 32-bit platform

烂漫一生 提交于 2019-11-30 06:10:51
In an application I maintain, we've encountered a problem with file descriptor limitations affecting the stdlib. This problem only affects the 32-bit version of the standard lib. I have devised a fix for my code and would like to implement it, but only when compiling for 32-bit executable. What pre-processor symbol can I #ifdef for to determine whether the code is being compiled for a 32 or 64-bit target? EDIT Sorry, didn't mention, the code is cross-platform, linux, windows, solaris and a few other unix flavors, mostly using GCC for compilation. Any de-facto standards I can use cross-platform

Exec format error 32-bit executable Windows Subsystem for Linux?

大兔子大兔子 提交于 2019-11-30 05:53:46
问题 When I try to execute a 32-bit file compiled with gcc -m32 main.c -o main on Windows Subsystem for Linux , I get the following error: bash: ./main: cannot execute binary file: Exec format error . If I compile it without -m32 it runs. Any solution for running 32-bit executable on WSL ? 回答1: 32-bit ELF support isn't provided by WSL (yet). There doesn't seem to be any progress since the UserVoice was raised - you are out luck. See UserVoice: Please add 32 bit ELF support to the kernel and