J. Gareth Moreton <gar...@moreton-family.com> schrieb am Fr., 8. Nov. 2019, 04:01:
> 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. Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel