by Renaud · 6y ago · 0 comments
I'm wondering what's the downside of using a 32 bits in the case of a console text editor? I doubt that it's because you could theoretically need to load 4GB+ text files in memory.
Is there a good reason to want a 64 bit version of an editor to the point of excluding it if there isn't one?
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/largead...
But in any case, you would think 2 GB is more than enough RAM for most text handling scenarios.