On Thursday 11 May 2017 14:27:51 Fred van Stappen wrote:
> Hello Martin
> >> It is sad that still a fpc library with same code is 5 times bigger than
> >> a fpc executable ( and montain times bigger than same C code compiled
> >> with gcc or clang).
> >
> > Do you know why?
> Huh, the answers in fpc forum are nebulous:
> - One said it is because  parameter -fPIC is added automatic even when not
> entered by code. It seems that fpc has problems if -fPIC is not used.
> - Other said it is because dynamic runtime packages are not supported yet:
> http://free-pascal-general.1045716.n5.nabble.com/Size-of-program-vs-library
> - There was other answers too but I do not find it back.
You compare a smartlinked executable (-XX -CX) with the size of the 
correspondent libraries. It is logical that the libraries are bigger because 
the libraries contain all named code, the smartlinked executable contains the 
actually used code only.


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
mseide-msegui-talk mailing list

Reply via email to