[Lazarus] Size of binaries etc.

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Mar 23 11:07:00 CET 2012

Mattias Gaertner wrote:
> On Thu, 22 Mar 2012 18:31:06 +0000
> Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:
>> Felipe Monteiro de Carvalho wrote:
>>> I did some tests here and I guess this is simply the normal size of an
>>> app if you use ComCtrls. 1,5MB was for a minimal app with a form and
>>> some buttons. ComCtrls alone adds 1MB You can check this in the menu
>>> Project->Show used ppu files (might be 0.9.31+ only).
>> You've hit it on the head. Cody shows that ComCtrls is being pulled in 
>> as part of LCLBase, even if none of its controls are being used (in the 
>> current case, the test form and associated unit are entirely empty).
>> Shouldn't at least some of this be excluded by smartlinking?
> Cody values are before smart linking.
> I heard there is a compiler flag that shows information after smart
> linking.

If anybody has any thoughts as to how to enable this I'd be interested 
to know. Otherwise I'll just have to live with the issue, noting that in 
general it's a one-time overhead.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the Lazarus mailing list