[fpc-pascal] Size of program vs library ?

Michael Van Canneyt michael at freepascal.org
Mon Feb 3 18:30:57 CET 2014



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.



More information about the fpc-pascal mailing list