[fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

Jonas Maebe jonas.maebe at elis.ugent.be
Thu May 19 10:57:12 CEST 2016


LacaK wrote:

> Wow I never heared about such option.
> This are my results:
> (compiled application is Win 32 bit)

How large are the memory blocks that you try to allocate.

> it should be 2GB on 32bit and 4GB on 64bit Windows with
> *IMAGE_FILE_LARGE_ADDRESS_AWARE*

There is a difference between the total amount of memory you can 
allocate, and the maximum size of a single block of memory that you can 
allocate. The latter is much smaller than the former, because the 
address space gets divided in multiple parts due to where the program 
gets loaded, where dll's get loaded and where the kernel gets mapped.


Jonas



More information about the fpc-pascal mailing list