[fpc-pascal] Smart-linking versus Whole Program Optimization

Jonas Maebe jonas at freepascal.org
Wed Mar 10 14:38:16 CET 2021


On 10/03/2021 14:33, LacaK via fpc-pascal wrote:
> It will be nice have this in documentation. For example in
> https://www.freepascal.org/docs-html/prog/progse30.html#x195-2000007.3
> 
> At least explain:
> - relation of -CX and -XX

Indeed.

> - what is to be removed: non-referenced non-virtual methods, global
> variables, and regular procedures/functions

Disagreed. Those are implementation details, may vary from target to
target, may depend on the assembler/linker rather than on FPC, etc. What
I wrote is just the high level idea. When you have e.g. published
properties and their RTTI, you can easily start having a lot of hidden
references.


Jonas


More information about the fpc-pascal mailing list