[fpc-pascal]Issues regarding available memory

Peter Vreman peter at freepascal.org
Fri May 16 23:41:50 CEST 2003


>Given that the heap grows, how can I determine the maximum available
>memory (in a platform-independent way)?

There is no way. It is up to the operator system. FOr example under linux 
you can't determine it correctly as an other program can fill the memory 
also so there is less left for your program. The only thing you can 
retrieve is the limit set by getrlimit, but this syscall is not yet implemented


Peter





More information about the fpc-pascal mailing list