The problem is that the compiler is compiled as 32 bit program and thus could address a max of 4 Gb. However, the kernel is also mapped into the address space of a program to avoid too many hardware switches which are rather expensive (and also to simplify things). And guess what, the reserved address space in Windows 7 is exactly 2 Gb (both x86 and x86-64)


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com