[Lazarus] Large program size - 1.8 MB for empty GUI project
Martin Friebe
lazarus at mfriebe.de
Fri Apr 3 03:16:06 CEST 2009
Vincent Snijders wrote:
> Igor Tkachenko schreef:
>
>> Does this mean that 1.8 MB is the size of empty Lazarus application now?
>>
>
> Yes. For an application that includes the LCL.
>
>
>> Or I do something wrong?
>>
>
> No.
>
> I think the size of 500 kB was too high from the beginning, I never saw
> it smaller than 1 or 1.2 MB, but the size has grown since that article
> was written.
>
>
Try building your app with:
-O2 -Os -XX -CX -OpPENTIUM
gives 1.5 MB (you also need to recompile the LCL with those options)
or look at http://wiki.freepascal.org/Whole_Program_Optimization
Best Regards
Martin
More information about the Lazarus
mailing list