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

Paul Ishenin webpirat at mail.ru
Fri Apr 3 15:54:59 CEST 2009


Mattias Gärtner wrote:
> Zitat von Marco van de Voort <marcov at stack.nl>:
>
>   
>> On Thu, Apr 02, 2009 at 08:25:16PM -0300, Felipe Monteiro de Carvalho wrote:
>>     
>>> The application is not empty. If you check the symbols inside the
>>> application you will see that almost all LCL components are added, and
>>> PNG support, XML library, etc, etc, etc, even if not used. The
>>> smartlinking is simply not yet good enought to remove those parts.
>>>       
>> Note that unneeded parts in an .exe might also be a LCL architectural
>> problem, not necessarily per se smartlinking. Often if units are referenced,
>> init code is run that touches a lot of stuff.
>>     
>
> Yes. There are two LCL design problems with smart linking:
> - published properties/methods needed for RTTI forms
> - the register mechanism of the LCL interfaces
>   
There are more places:
 - win32 and wince interface: WndProc procedure
 - gtk1, gtk2: event handlers, SetText method

Best regards,
Paul Ishenin.



More information about the Lazarus mailing list