profiling library smaller than non-profiling, while it contains more symbols. Why?

Anton Shterenlikht mexas at bristol.ac.uk
Fri Jul 13 11:09:37 UTC 2012


On Fri, Jul 13, 2012 at 11:15:45AM +0200, Wojciech Puchar wrote:
> >-rw-r--r--  1 root  wheel  6582354 Jul 12 22:56 libslatec.a
> >-rw-r--r--  1 root  wheel  6555122 Jul 12 23:02 libslatec_p.a
> >#
> >
> 
> profile library or -fpic library?

I think profile:

===>  Building for slatec-4.1
Warning: Object directory not changed from original /usr/ports/math/slatec/work/src
gfortran46   -O -Wl,-rpath=/usr/local/lib/gcc46 -c aaaaaa.f
 *skip ~1400 other files*
gfortran46   -O -Wl,-rpath=/usr/local/lib/gcc46 -c zwrsk.f
building static slatec library
/usr/local/bin/ranlib libslatec.a

gfortran46 -pg -O -Wl,-rpath=/usr/local/lib/gcc46 -o aaaaaa.po -c aaaaaa.f
 *skip ~1400 other files*
gfortran46 -pg -O -Wl,-rpath=/usr/local/lib/gcc46 -o zwrsk.po -c zwrsk.f
building profiled slatec library
/usr/local/bin/ranlib libslatec_p.a

gfortran46 -fpic -DPIC -O -Wl,-rpath=/usr/local/lib/gcc46 -o aaaaaa.So -c aaaaaa.f
 *skip ~1400 other files*
gfortran46 -fpic -DPIC -O -Wl,-rpath=/usr/local/lib/gcc46 -o zwrsk.So -c zwrsk.f
building shared library libslatec.so.1


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423


More information about the freebsd-questions mailing list