This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: static size


Brian Gough writes:
 > The final size of executable files should be about the same, since the
 > linker should only include the .o files that are used by the program.

This is how it works on my system, anyway.

bjg|debian> ld --version
GNU ld 2.9.1

Typical example,

bjg|debian> cd histogram
bjg|debian> gcc -static -I .. gsl-histogram.c -lgsl -lm
bjg|debian> ls -l a.out
-rwxrwxr-x   1 bjg      bjg        269691 Jun 26 21:40 a.out*
bjg|debian> strip a.out
bjg|debian> ls -l a.out
-rwxrwxr-x   1 bjg      bjg        170384 Jun 26 21:40 a.out*

regards
Brian



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]