[Lazarus] Can I configure Lazarus (or the project) to only add symbols on debug?
Bo Berglund
bo.berglund at gmail.com
Tue Dec 14 13:04:51 CET 2021
On Tue, 14 Dec 2021 11:55:45 +0100, Bo Berglund via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>I also tested on a RaspberryPi project on an RPi3B (using 2.0.12 + 3.2.0):
>In this case I have a service application (non-GUI app), which I basically never
>run in the Lazarus debugger. Its mode has never been dealt with so it was the
>out-of-the-box default.
>Now I added the Release mode by just clicking the + button and naming it
>Release.
>Then I did as before and disbled the "Generate info for the debugger" item.
>I also checked the "Strip symbols from executable" box.
>
>The result was a bit surprising:
>Using Default
>Binary size: 9,572,660 after strip: 4,547,712
>
>Using Release:
>Binary size: 6,311,022 after strip: 6,311,020
>
>So in this case the original binary size was a lot larger than the stripped
>result from the Default mode, why was this?
>
>And every time I now switch mode for compliling my app it also recompiles the
>Indy10 package, why?
I went back to he RPi and removed the Release mode I created from the + button,
then used the "Create Debug and Release modes" button to create two new modes.
Deleted the Debug mode and configured Release as described above.
Now my compile results in a file of size 3,251,612 bytes and when going back to
the Default mode it is (after recompiling the Indy10 package) 9,572,660
Strange...
--
Bo Berglund
Developer in Sweden
More information about the lazarus
mailing list