Is it possible to use more than 2 Gbytes of memory in a 32-bit program launched in the 64-bit Windows?

Andrey Karpov
Articles: 552

Yes, it is. To do that, you should tell the linker that the application can process addresses for more than 2 Gbytes - that is compile the application with the /LARGEADDRESSAWARE parameter. Now the virtual address space for one 32-bit processor will be theoretically limited by 4 Gbytes of physical memory (in practice, the application can access about 3.5 Gbytes). The /LARGEADDRESSAWARE parameter is disabled by default.

References



Use PVS-Studio to search for bugs in C, C++, C# and Java

We offer you to check your project code with PVS-Studio. Just one bug found in the project will show you the benefits of the static code analysis methodology better than a dozen of the articles.

goto PVS-Studio;

Andrey Karpov
Articles: 552


Bugs Found

Checked Projects
412
Collected Errors
14 132
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →
Accept