[fpc-devel] inline... and philosophy

Sven Barth pascaldragon at googlemail.com
Sun Nov 10 09:24:41 CET 2019


J. Gareth Moreton <gareth at moreton-family.com> schrieb am So., 10. Nov.
2019, 03:23:

> Does the smart linker strip out LCL components that are not used, or must
> everything that's registered in a package or unit be included? Granted,
> since forms are being read from a resource file, I doubt it can really be
> tied into the compiler that closely
>

As long as one doesn't include the function that does the Registration then
components that are not used should be smart linked away. Cause even if
you're reading from a resource file there is still the use of the component
inside the form's declaration and thus the compiler as its usage reference.
The only problematic part might be the widgetset backend itself where
things might not be able to be smartlinked away that nicely.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20191110/46d47671/attachment.html>


More information about the fpc-devel mailing list