[fpc-pascal] Exe size

Vladimir Zhirov vvzh.lists at gmail.com
Thu Sep 4 16:48:20 CEST 2008


Paul wrote:
> 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?

Yes, you should also disable -gl option (Display Line Numbers in
Run-time Error Backtraces). This will give the most tangible size
reduction compared to the options you have enabled.

-- 
Vladimir




More information about the fpc-pascal mailing list