[fpc-pascal] Compiling from and to memory

Florian Klaempfl florian at freepascal.org
Mon Apr 30 17:36:08 CEST 2012

Am 26.04.2012 14:57, schrieb OBones:
> Jonas Maebe wrote:
>> OBones wrote on Mon, 23 Apr 2012:
>>> And because I have to split my generated files so that FPC does not
>>> hit the 2GB memory limit (which it does for a 15M source file)
>> What is the structure of that source code? (a few giant routines,
>> large constant arrays, ... ?)
> Thousands of small routines. Splitting them across multiple units allows
> to compile, with the "write to disk" issue.

You can use a compiler compiled with EXTDEBUG to get some statistics 
where the memory goes.

More information about the fpc-pascal mailing list