Dumb question -- 32 vs 64 bit Windows

mmganga

Senior member
Jan 17, 2004
233
0
0
Say I have a 32-bit application which runs (is compatible with) a 64-bit version of Windows (Vista or 7). Can this 32-bit application use more than 4 Gb of RAM (which was the 32-bit limitation of the 32-bit OS)?

Thanks!
 

MagnusTheBrewer

IN MEMORIAM
Jun 19, 2004
24,135
1,594
126
I think you may be confused. If the program is running on a 64 bit OS then, yes, the application can use more than 4 Gb of ram. The limiting factor is the OS not, the program.
 

VirtualLarry

No Lifer
Aug 25, 2001
56,450
10,119
126
I think you may be confused. If the program is running on a 64 bit OS then, yes, the application can use more than 4 Gb of ram. The limiting factor is the OS not, the program.

32-bit apps can only use 4GB of RAM. Even if the OS supports more.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Say I have a 32-bit application which runs (is compatible with) a 64-bit version of Windows (Vista or 7). Can this 32-bit application use more than 4 Gb of RAM (which was the 32-bit limitation of the 32-bit OS)?

Thanks!

No and by default it will only get 2G of VM just as if it were running on a 32-bit OS, IIRC. Unless it uses AWE to get around the VM limitations, but that's extremely rare.

Shack70 said:
I don't think so, the OS will emulate the 32 bit OS to run the app

There's no emulation going on, AMD64 CPUs execute 32-bit code natively even in long mode. Windows does some special things to make sure the right libraries are loaded and such, but that's about it.
 
Last edited:

ViRGE

Elite Member, Moderator Emeritus
Oct 9, 1999
31,516
167
106
No and by default it will only get 2G of VM just as if it were running on a 32-bit OS, IIRC. Unless it uses AWE to get around the VM limitations, but that's extremely rare.
AWE is only necessary to use more than 4GB on a 32bit application. For more than 2GB, being Large Address Aware (using unsigned INTs for addresses) is enough.
 

Anteaus

Platinum Member
Oct 28, 2010
2,448
4
81
On 32-bit Windows systems (XP,Vista,7), any particular program can only use a maximum of 2GB of memory space, even though the OS can support 4GB. This is OS enforced. Most 32-bit software is written with this in mind. This exact reason is why Supreme Commander kept crashing on systems at release. The game would keep trying to write to memory past the 2GB barrier and crash. They later patched the game to only use 2GB and the problems disappeared. This OS implimented limitation can be removed with a switch, but due to stability issues it is turned off by default.

For 32-bit software running under 64-bit (Vista,7), this cap was increased to 3GB. So in practice 32-bit software has up to 3GB available, however since most 32-bit software was written with the 2GB limit in mind you'll find most programs will simply keep themselves under 2GB by design.
 

her209

No Lifer
Oct 11, 2000
56,352
11
0
The application doesn't know nor does it need how much physical RAM is installed. It addresses memory using virtual memory addresses which the OS, Windows in the instance, handles the conversion from virtual memory addresses to physical addresses. That's the theory anyway.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
The application doesn't know nor does it need how much physical RAM is installed. It addresses memory using virtual memory addresses which the OS, Windows in the instance, handles the conversion from virtual memory addresses to physical addresses. That's the theory anyway.

It's not theory, it's how it VM works and why you get a SEGV if you try to access memory outside of your current VM range. But applications can indeed query how much physical memory is in the system, how much VM they have access to, etc and change their usage patterns accordingly.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |