[Lazarus] Strip debug info

Florian Klämpfl florian at freepascal.org
Sun Apr 29 11:01:18 CEST 2012


Am 28.04.2012 21:19, schrieb Richard Mace:
> 
> 
> On 28 April 2012 08:21, Reinier Olislagers <reinierolislagers at gmail.com
> <mailto:reinierolislagers at gmail.com>> wrote:
> 
>     On 28-4-2012 8:57, Richard Mace wrote:
>     > Hi,
>     > What's the safest way of making the .exe smaller than default? Is it
>     > just to strip debug info?
>     > How would I do this?
>     Perhaps this will give you some ideas?
>     http://wiki.lazarus.freepascal.org/Size_Matters#Incorrect_compiler_configuration
> 
>     ... you can either not generated debug info at all or generate external
>     debug info (.dbg)...
> 
> 
> Is there any reason why the -Xg flag is not on at default? What's the
> disadvantage of using this flag? The reason I say is because there is a
> "massive" reduction in .exe size?

What's the problem with the .exe size when compiling with debug info? If
one compiles with debug settings, one usually wants to have the debug
info? If not, don't use debug settings.




More information about the Lazarus mailing list