3 ms·
On Windows the executable will most likely only have access to 2 GB of memory. The Windows PE header contains the LARGEADDRESSAWARE flag which controls the mem
by jussij 6y ago
On Windows the executable will most likely only have access to 2 GB of memory.
The Windows PE header contains the LARGEADDRESSAWARE flag which controls the memory available to the executable.
When that flag is off (i.e. the Microsoft recommended default value) the executable only has access to 2 GB of memory.
To access more memory that LARGEADDRESSAWARE PE flag set to on:
https://docs.microsoft.com/en-us/cpp/build/reference/largeaddressaware-handle-large-addresses?redirectedfrom=MSDN&view=vs-2019 https://docs.microsoft.com/en-us/cpp/build/reference/largead...
But in any case, you would think 2 GB is more than enough RAM for most text handling scenarios.