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

> Date: Mon, 3 Feb 2014 18:30:57 +0100
> From: mich...@freepascal.org
> To: fpc-pascal@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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to