[fpc-devel] CmdLine

Peter Vreman peter at freepascal.org
Thu Oct 19 08:08:37 CEST 2006


> Daniƫl Mantione wrote:
>> By the way, I have a patch ready which turns it into a property, which
>> prevents some code being pulled in Hello World kind of apps.
>
> Would be nice if somehow smartlinking could be 'smartened' to optimize
> this out. (Conditional initialization for group of variables/functions?)

That is impossible. The linker is 'stupid' in that sence. And it also
should not be trying to be smart. Otherwise it will fail in other
situations. Maybe you remember what the (currently disabled) VMT optimizer
did for the LCL. It removed methods that the LCL expected to be there.






More information about the fpc-devel mailing list