[fpc-devel] inline... and philosophy

Sven Barth pascaldragon at googlemail.com
Fri Nov 8 10:49:58 CET 2019

J. Gareth Moreton <gareth at moreton-family.com> schrieb am Fr., 8. Nov. 2019,

> Speaking of whole program optimisation, it always seems very fiddly to
> set up, to the point that the FPC bootstrapper needs a script to get it
> working.  Not exactly user-friendly and practically demands learning a
> separate skill to get working (at least I've struggled). Shouldn't the
> compiler have an option to do the two stages of whole program
> optimisation (generate the information files, then use the information
> files) in one sitting?

The compiler is compiled multiple times anyway when bootstrapping and the
need for the scripting there is not only the WPO, but the repeated
compilation of RTL and compiler.

Also the compiler's infrastructure is currently not geared towards repeated
compilations in the same process. Yes, the textmode IDE essentially does
that, but all it does is call the compile() function. For WPO that would
need to happen *inside* that function.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20191108/72ecfa66/attachment.html>

More information about the fpc-devel mailing list