ge*********@gmail.com wrote:
wa******@gmail.com wrote:
>hi,
I am new to c++. how we can see - how much maximum memory we can
allocate through C++ program on Windows XP OS. Though its system
dependant I guess it shouldn't be more than 4GB on 32 bit machine.
Yeah, it's OT, but I'm in a forgiving mood this afternoon :-)
It depends on which version of XP/2003/2000 you have.
In general you get 2GB of virtual address space. If the system was
booted with the /3GB flag, you get 3GB. This is for the workstation
versions. Your mileage may vary for the Advanced/Enterprise/Datacenter
versions which support much more physical memory. I believe they still
restrict processes to 2 or 3GB of virtual memory per process, however.
As always, since this is OT, you should take this with a large grain of
salt, and ask in a platform specific newsgroup. See
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9 for a
list of suggested groups.