[Lazarus] Large program size - 1.8 MB for empty GUI project
Samuel Herzog
sam_herzog at yahoo.com
Fri Apr 3 12:25:39 CEST 2009
Sorry for my question, but do all those statements e.g. DebugLN('WARNING: obsolete call to RecreateWnd for %s', [AWinControl.ClassName]);
make the exe-file bigger ?
There are thousends of them.
________________________________
Von: Marc Weustink <marc.weustink at cuperus.nl>
An: General mailing list <lazarus at lazarus.freepascal.org>
Gesendet: Freitag, den 3. April 2009, 11:52:59 Uhr
Betreff: Re: [Lazarus] Large program size - 1.8 MB for empty GUI project
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.
Marc
_______________________________________________
Lazarus mailing list
Lazarus at lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20090403/41b09989/attachment-0007.html>
More information about the Lazarus
mailing list