Lightweight method to use Amd64 instructions under 32-bit Windows?
问题 For some CPU-bound code using 64-bit variables, it is beneficial to use the Amd64 instruction set rather than x86. How can it be done under 32-bit Windows (e.g. Windows XP SP3)? Of course I assume a modern, Amd64-enabled CPU. I'm excluding the working but heavyweight method: running a full-blown 64-bit OS as a virtual machine, e.g. Ubuntu for Amd64 under Virtualbox. I understand some assembly is needed, and there will restrictions, in particular addressing more memory than 32-bit Windows