[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gprof] strange behavior, esp spontaneous
From: |
Ross Boylan |
Subject: |
Re: [gprof] strange behavior, esp spontaneous |
Date: |
Thu, 13 Jan 2005 11:59:40 -0800 |
On Wed, 2005-01-12 at 23:47 -0800, Ross Boylan wrote:
....
> The program is in C++, and I am linking with libtool. It is possible
> it is not handling -pg properly, On Linux, it is not passed to the
> linker:
Actually, as the listing shows, libtool does pass -pg on to the command
it invoked (g++). The output of the -v option shows that g++, not
libtool, doesn't pass -pf on to ld. Presumably g++ knows what it's
doing (unless the location of -pg at the end of the command line is a
problem).
> ../libtool --mode=link g++ -v -o profile -g -pg profile.o
> ConstrainedCoefficients.o Data.o Covariates.o Evaluator.o Specification.o
> Model.o Path.o PathGene\
> rator.o SimpleRecorder.o SuccessorGenerator.o StateTimeClassifier.o
> TestRecorder.o AbstractTimeStepsGenerator.o FixedTimeStepsGenerator.o
> CompressedTimeSte\
> psGenerator.o TimeStepsGenerator.o TestManager.o mspath.o Manager.o Rstub.o
> -pg
> g++ -v -o profile -g -pg profile.o ConstrainedCoefficients.o Data.o
> Covariates.o Evaluator.o Specification.o Model.o Path.o PathGenerator.o
> SimpleRecorder.\
> o SuccessorGenerator.o StateTimeClassifier.o TestRecorder.o
> AbstractTimeStepsGenerator.o FixedTimeStepsGenerator.o
> CompressedTimeStepsGenerator.o TimeSteps\
> Generator.o TestManager.o mspath.o Manager.o Rstub.o -pg
> Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> Configured with: ../src/configure -v
> --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
> --mandir=/usr/share/man --infodir=/usr/share/\
> info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> --with-system-zlib --enable-nls --without-included-gettext
> --enable-__cxa_atexit --enable-\
> clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib
> --enable-objc-gc i486-linux
> Thread model: posix
> gcc version 3.3.5 (Debian 1:3.3.5-5)
> /usr/lib/gcc-lib/i486-linux/3.3.5/collect2 --eh-frame-hdr -m elf_i386
> -dynamic-linker /lib/ld-linux.so.2 -o profile
> /usr/lib/gcc-lib/i486-linux/3.3.5/../.\
> ./../gcrt1.o /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crti.o
> /usr/lib/gcc-lib/i486-linux/3.3.5/crtbegin.o
> -L/usr/lib/gcc-lib/i486-linux/3.3.5 -L/usr/lib/\
> gcc-lib/i486-linux/3.3.5/../../.. profile.o ConstrainedCoefficients.o Data.o
> Covariates.o Evaluator.o Specification.o Model.o Path.o PathGenerator.o
> Simple\
> Recorder.o SuccessorGenerator.o StateTimeClassifier.o TestRecorder.o
> AbstractTimeStepsGenerator.o FixedTimeStepsGenerator.o
> CompressedTimeStepsGenerator.o \
> TimeStepsGenerator.o TestManager.o mspath.o Manager.o Rstub.o -lstdc++ -lm
> -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-lib/i486-linux/3.3.5/crtend.o
> /usr/\
> lib/gcc-lib/i486-linux/3.3.5/../../../crtn.o
>
> Can anyone shed any light on these behaviors?
>
> Thanks.