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

Marc Weustink marc.weustink at cuperus.nl
Fri Apr 3 11:52:59 CEST 2009

Alexey S. Smirnov wrote:
> Graeme Geldenhuys пишет:
>> On Fri, Apr 3, 2009 at 3:02 AM, Paul Ishenin <ip at kmiac.ru> wrote:
>>> Felipe Monteiro de Carvalho wrote:
>>>> And this has been debated 1 million times before, please search in the
>>>> mailling list archives.
>>> This also means that problem of big executable size worries developers.
>>> Maybe we need to research more how to make our executables smaller.
>> Especially so if you are targeting embedded devices, smartphones
>> etc... Size matters in this case, but not so much for desktop
>> applications.
> 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.


More information about the Lazarus mailing list