[fpc-pascal] Exe size
Michael Fuchs
m.fuchs at ypa-software.de
Thu Sep 4 15:07:30 CEST 2008
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
More information about the fpc-pascal
mailing list