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

Bo Berglund bo.berglund at gmail.com
Fri Feb 18 11:43:40 CET 2011


On Fri, 18 Feb 2011 08:46:45 +0200, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:

>1) Strip debug information and enable smart linking.
>   Project Options -> Code generation
>   project Options -> Linking.
>
>   The FPC parameters are:
>      -CX -XX -Xs
>
>2) Use a "lighter" GUI toolkit. fpGUI produces much smaller executables
>   than LCL (handy for embedded work). MSEgui is somewhere in the
>   middle.
>
Couldn't Lazarus be "smart" about the code generation as follows:
1) When one clicks the run button (green arrow) lazarus creates the
exe file with embedded debug information such that breakpoints etc
work for debugging.

2) When one uses the build function Lazarus does NOT use the compile
option to enter debug data into the exe, thus creating the slimmer
file.

With this one would get the best of both worlds, right?

-- 

Bo Berglund
Developer in Sweden





More information about the Lazarus mailing list