[fpc-pascal] Size of program vs library ?

Michael Van Canneyt michael at freepascal.org
Tue Feb 4 10:39:35 CET 2014



On Mon, 3 Feb 2014, Fred van Stappen wrote:

> > Date: Mon, 3 Feb 2014 18:30:57 +0100
> > From: michael at freepascal.org
> > To: fpc-pascal at lists.freepascal.org
> > Subject: Re: [fpc-pascal] Size of program vs library ?
> >
> >
> >
> > On Mon, 3 Feb 2014, Fred van Stappen wrote:
> >
> > > Hello.
> > >
> > > Here size of "nude" program and library compiled with fpc 2.7.1.
> > > Why is it a so big size-difference ?
> > >
> > > Compiled with => fpc 2.7.1 => linux 64
> > > Compiler parameters : -MObjFPC -Scghi -CX -Os1 -Xs -XX -vewnhi -fPIC
> >
> > I suspect PIC is to blame. This adds a lot of tables to your library.
> >
> > Michael.
> 
> Hum, when compile with or without -fPIC, it does not change anything,... i get exactly the same size...

If I am correct, the compiler will add the PIC by itself.
But someone of the compiler team should confirm this...

Michael.



More information about the fpc-pascal mailing list