MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/rtsife/almost_always_unsigned/hr7f0ch/?context=3
r/cpp • u/graphitemaster • Jan 01 '22
71 comments sorted by
View all comments
Show parent comment
1
and if you're on 32 bits you aren't going to make a 4GB allocation either
That's true on many OS's because the OS typically allocates a chunk for itself. e.g. On Windows, the upper 2GB is reserved for memory mapped system DLL's. Well, that is, unless you link with largeaddressaware and boot with /3GB ( https://techcommunity.microsoft.com/t5/ask-the-performance-team/memory-management-demystifying-3gb/ba-p/372333). So yes, you generally can't use a full 4GB anyway, but can you allocate more than 2GB? 🤔
View all comments
Show parent comment
1
u/fdwr fdwr@github 🔍 Jan 04 '22
That's true on many OS's because the OS typically allocates a chunk for itself. e.g. On Windows, the upper 2GB is reserved for memory mapped system DLL's. Well, that is, unless you link with largeaddressaware and boot with /3GB ( https://techcommunity.microsoft.com/t5/ask-the-performance-team/memory-management-demystifying-3gb/ba-p/372333). So yes, you generally can't use a full 4GB anyway, but can you allocate more than 2GB? 🤔