[fpc-devel] CmdLine
Peter Vreman
peter at freepascal.org
Thu Oct 19 08:11:51 CEST 2006
>>> Would be nice if somehow smartlinking could be 'smartened' to optimize
>>> this out. (Conditional initialization for group of
>>> variables/functions?)
>>
>> Yes :) I thought at least a hundred times about it during the last ten
>> years, but I never came up with an idea that is both clean and doable in
>> implementation.
>
> I thought there was already one ? 'unit export' or something alike,
> where you can re-export all types defined in another unit in this unit.
> If nothing is used from that unit, it is completely smartlinked out,
> including initialization/finalization.
That is again not possible. Even if nothing is exported the initialization
can do some specific os settings or update some system unit settings.
Examples are the heaptrc and lineinfo units.
More information about the fpc-devel
mailing list