[fpc-pascal] Executable size compiler 1.96 vs 1.06
Peter Vreman
peter at freepascal.org
Tue May 17 10:35:17 CEST 2005
>> Ok something I just did was:
>> Copy ldw.exe from the \dev-pascal\bin directory over to ld.exe in the
>> 1.9.6 compiler (rename ldw to ld)
>>
>> Now program is only 440kb .. hmm
>
> This is the stripping issue I think, and depends on GNU ld.
>
> However the old ld had some problems too, that's why was decided to ship
> the newer one,
> since one can always manually strip a release build with "strip file"
>
Correct. I did a test here. Lazarus provides units compiled with debug
info. The new ld.exe/strip.exe has problems with stripping it. Result is a
large, but working, executable.
Shipping the old ld.exe (from 1.0.x) is not an option since it can't link
with current cygwin libraries. Those libraries are used to include
debugger support the textmode IDE.
So it was a trade-off. Ship a working ld.exe that fails to strip .stabs or
ship a ld.exe that can't link cygwin applications.
More information about the fpc-pascal
mailing list