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

As far as I’m concerned, the single most important thing about porting C/C++ code to 64-bit Windows is to test your application with MEM_TOP_DOWN allocations enabled (AllocationPreference registry value) as described in 4-Gigabyte Tuning: To force allocations to allocate from higher addresses before lower addresses for testing purposes, specify MEM_TOP_DOWN when calling VirtualAlloc or set … Read more

The proper way of forcing a 32-bit compile using CMake

If you want to compile and link for 32 bit using cmake use this for creating libraries and binaries: Creating libraries: add_library(mylib SHARED my_source.c) set_target_properties(mylib PROPERTIES COMPILE_FLAGS “-m32” LINK_FLAGS “-m32”) creating executables: add_executable(mybin sources.c) set_target_properties(mybin PROPERTIES COMPILE_FLAGS “-m32” LINK_FLAGS “-m32”)

Options for using System.Data.SQLite in a 32bit and 64bit C# world

This is an elaboration of the answer from Springy76. Do this: public class AssemblyResolver { public static void HandleUnresovledAssemblies() { AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.AssemblyResolve += currentDomain_AssemblyResolve; } private static Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { if (args.Name == “System.Data.SQLite”) { var path = Path.Combine(pathToWhereYourNativeFolderLives, “Native”); if (IntPtr.Size == 8) // or for .NET4 use … Read more

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

What does the Python version line mean?

That line you see indicates how the python interpreter was built. Breaking it down: Python 2.7 — Python version (r27:82525, Jul 4 2010, 07:43:08) — The build date and revision from src trunk that was used to build this. [MSC v.1500 64 bit (AMD64)] — Compiled with MSVC compiler targeting 64-bit on win32 — All … Read more