> 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.



_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to