[Lazarus] Deep exe strip :)

Kostas Michalopoulos badsectoracula at gmail.com
Wed Oct 24 15:24:01 CEST 2012


Does the size change if you do a

strip --strip-all executable

in one of the large versions down to the small version?

On Wed, Oct 24, 2012 at 3:02 PM, Krzysztof <dibo20 at wp.pl> wrote:
> Hi,
>
> I did some tests with linking options. Tested on CodeTyphon 2.90,
> Linux mint GTK2 64bit. Empty form:
>
> 1. Project options:
>   - smart linking (-CX),
>   - optimization level 3,
>   - unchecked "create debugger information"
>   - clear debug symbolx (-Xs)
>   - smart linking (-XX)
>
> Result: 5 MB
>
>
> 2. Same project options, but IDE rebuild with -CX and -XX options
>
> Result: 2.9 MB
>
> 3. Same options but added VirtualTreeView control from additional package
>
> Result: 3.8 MB
>
> 3. Same options but rebuild VirtualTreeView package with unchecked
> option "create debugger information"
>
> Result: 3.6 MB
>
> My question is: Is exists any global strip to get the smallest
> possible exe size? Why when I have configured "release" build mode in
> my project with all "striping" and smart linking, requied packages
> still have debuger informations and I must uncheck and rebuild it
> manually? I'm not complaining, I'm just curious :) . For example
> rebuild 4 requied packages with unchecked "create debugger info" in my
> project, I get exe smaller by 1MB
>
> Regards.
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list