[fpc-devel]Memory exhausted

Sergey Korshunoff Sergey.Korshunoff at p5.f2666.n5020.z2.fidonet.org
Thu Apr 5 05:14:53 CEST 2001

PV> From: Peter Vreman <peter at freepascal.org>
>>> Try compiling with -Ca, this will set all registers to used for
>>> each procedure. Yes, this helped. But that's strange compiler
>>> cannot catch all the changes after the first pass.

PV> Because of the interdependency. Recompiling everything internal until
PV> it convergences will take to much time for a first compile. For the
PV> compiler itself it'll take 5-6 compiles before only pp.pas is
PV> compiled.
PV> When there was a routine in unit A that didn't use all registers then
PV> unit B will recompile, because it can possible be optimized. This
PV> change can lead to unit A want to recompile the next time again when
PV> a third recompile is done.

May be we need to set -Ca as default when _NO_ any optimization options
given to FPC?

    Sergey Korshunoff

PS: There is no any word in english version of `FPC -h` output about -Ca,
and some not clear comment `simple PPU compilation` in FPC source.

More information about the fpc-devel mailing list