[fpc-pascal] Size of program vs library ?

Fred van Stappen fiens at hotmail.com
Mon Feb 3 17:44:58 CET 2014


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

program prognude ;
begin
end.  
=> 26.9 k

library libnude ;
begin
end. 
=> 196.3 k
______________________________

Here with same 'uos' unit in 'uses' :

program proguos ;
uses
uos;
begin
end.  
=> 211.1 k

library libuos ;
uses
uos;
begin
end. 
=> 1000.1 k

Many thanks.


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140203/6ccbff11/attachment.html>


More information about the fpc-pascal mailing list