Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2012 12:09:35 +0100
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>, freebsd-questions@freebsd.org
Subject:   Re: profiling library smaller than non-profiling, while it contains more symbols. Why?
Message-ID:  <20120713110935.GB84618@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <alpine.BSF.2.00.1207131115320.23416@wojtek.tensor.gdynia.pl>
References:  <20120712223130.GA58047@mech-cluster241.men.bris.ac.uk> <alpine.BSF.2.00.1207131115320.23416@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120713110935.GB84618>