[Lazarus] Large program size - 1.8 MB for empty GUI project

Alexander Klenin klenin at gmail.com
Tue Apr 7 12:06:45 CEST 2009


On 2009-04-03, Marc Weustink <marc.weustink at cuperus.nl> wrote:
> Alexey S. Smirnov wrote:
>> SmartLink problem is quite simple. It seems that all units, mentioned in
>> "Interface->Uses" section will be fully linked. Only units mentioned in
>> "Implementation->Uses" section can be checked during SmartLink.
>> So, to enhance  linking process  and to reduce  binary size we shell
>> check all Interface sections of all LCL units to reduce units list.
>
> We have all units listed in the interface section to avoid unit circles.
>   This is needed since the compiler will fail to compile the LCL sooner
> or later if there are to many circles.

I strongly agree with Alexey here. The bug in FPC should be fixed and
Lazarus source updated to remove unnecessary units from 'uses'
clauses.

Not so much for executable size, but for mantainabilty of the source.


-- 
Alexander S. Klenin



More information about the Lazarus mailing list