Michael Fuchs schrieb:

I'm testing with FPC/Lazrus on Windows now, but a simple program results in 11.5 MB size. I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options (Lazarus), but the size is still the same.
Anything else I should do?

Use
    strip --strip-all $PROGRAMNAME.exe
after the compiling.

And if you want to shrink it more, try UPX.
http://upx.sourceforge.net/

mfg
Michael
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to