How do I compile and link a 32-bit Windows executable using mingw-w64

That depends on which variant of toolchain you’re currently using. Both DWARF and SEH variants (which come starting from GCC 4.8.0) are only single-target. You can see it yourself by inspecting the directory structure of their distributions, i.e. they contain only the libraries with either 64- or 32-bit addressing, but not both. On the other … Read more

How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions

You can find out a lot about the Python version you’re running via the platform module (the sys module also has a few simple helpers) On Mac OS X, you can run a “fat binary” with your chosen architecture with, for example, arch -i386 /usr/bin/python I do not recommend altering /usr/lib/python itself (with the lipo … Read more

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

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’t answer … Read more

What are the pros and cons of running IIS as 32bit vs 64bit on a 64bit OS?

The only perf advantage to running IIS on 64bit vevrsus 32-bit is to allow access to a much larger memory address space. If you are doing normal ASPX page processing, then it’s likely you don’t need to address more than 4gb from any single process. Suppose you run in 32-bit mode with a web-garden with … Read more

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

Pyinstaller produces a binary depending from the python you used to build it. So if you use python 2.7 64 bit it is not possible, as far as I know, to produce a 32 bit executable. This is because Pyinstaller archives all modules and their dependencies (dlls, pyds etc..) which are 64 bit due to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)