[fpc-devel] CmdLine

Daniël Mantione daniel.mantione at freepascal.org
Thu Oct 19 08:28:51 CEST 2006



Op Thu, 19 Oct 2006, schreef Peter Vreman:

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

Was this a bug or does there exist a fundamental problem with removing 
unused methods?

Daniël


More information about the fpc-devel mailing list