[Lazarus] Size of program executable very big...

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 18 18:55:20 CET 2011


On Fri, 18 Feb 2011 13:37:39 +0200
Paul van Helden <paul at planetgis.co.za> wrote:

> The "Use external gdb debug symbol file (-Xg)" linking option works well for
> me. It creates a 30MB .dbg file and a 5.4MB executable for my current
> project.
> 
> With this set, the "strip symbols from executable (-Xs)" option has no
> impact and unchecking the -gl option only shaves of 6KB!
> 
> 
> > No, that would be a bug. "Compile" let the compiler compile all new,
> > "Build" recompiles all units of the project.
> >
> 
> When I click Run, a lot of untouched units are recompiled every time... What
> exactly is the difference between "Run", "Build", "Build all" and "Quick
> compile"?

Yes, sorry for the fuzz.
Run checks if something changed and invokes a "Build". Then start
program or debugger.
Build calls compiler.
Build all calls compiler with -B.
Quick compile calls compiler with options to omit assembling and
linking.

 
> When I do a "build all", it takes 10 seconds for my project. Then I touch an
> insignificant unit and most, but not all, units are recompiled. 6 seconds.

Maybe linking your program takes a few seconds.


> "Quick compile" and "Build" seem to be doing the same as "Run" (without
> running of course).
> >
> >
> > You can define a second build mode "release" and enable whatever
> > optimization you think is appropriate for your customers.
> >
> >
> >
> > This is a great new feature.

:)

Mattias




More information about the Lazarus mailing list