[fpc-pascal] generated exe file size

Marco van de Voort marcov at stack.nl
Thu May 26 10:39:59 CEST 2005


> On 26 mei 2005, at 05:44, Bisma Jayadi wrote:
> 
> > The code is compiled using FPC with faster code optimization, generate 
> > exe file
> > with size 435 KB. While it is compiled using Delphi with optimization, 
> > generate
> > exe file with size (only) 83 KB. Why FPC generate that so big exe 
> > file? I only
> > use Variants unit explicitely.
> 
> Make sure you turn on smart linking (-XX). Also, stripping of debug 
> information is broken in the current versions of the GNU linker, which 
> we use. We cannot help that, and older versions in which this does work 
> cannot link with certain libraries.

Note that stripping debuginfo via the "strip" utility works, at least better
than via ld.




More information about the fpc-pascal mailing list