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

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Apr 8 09:56:32 CEST 2009


On Wed, Apr 8, 2009 at 9:36 AM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
>
> In order to break the circles, you must first find them. Move all uses
> to the interface section and FPC will find them for you.

Ah, now I see what you mean...  Still don't know if it's a good practice though.


>> What is important is if the unit is used or not.
>
> Only if the unit has an initialization section.
>
> For example simply adding uses Math; without using any part will not
> increase the exe (using smart linking).

Yes, that's what I meant by "unit is used or not".

Thanks Mattias for explaining...


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the Lazarus mailing list