size of executable - g95 vs gfortran42 - shared libs?

Sébastien Morand seb.morand at gmail.com
Thu Jun 5 13:57:51 UTC 2008


> % ldd *.out
> g95.out:
>        libm.so.5 => /lib/libm.so.5 (0x280c5000)
>        libc.so.7 => /lib/libc.so.7 (0x280db000)
> gf42.out:
>        libgfortran.so.2 => /usr/local/lib/gcc-4.2.4/libgfortran.so.2 (0x2807e000)
>        libm.so.5 => /lib/libm.so.5 (0x28103000)
>        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x28119000)
>        libc.so.7 => /lib/libc.so.7 (0x28124000)
> %

In the first one the library fortran is directly included in your exec
file, so the file is bigger. It looks like you have only a static
version of the g95 installed, and then the library is included in the
final program


More information about the freebsd-questions mailing list