This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i am getting same profile(for gcc) for all testcases


perugupa@csee.wvu.edu wrote:
$ make -j8 all CFLAGS="-g -profile -O2"

-profile isn't a gcc option. This might be the problem. Try -p or -pg. -pg will give more info.


this is what i am using to generate profile file.
  gcc test.c
  gprof -a /root/install/bin/gcc gmon.out > output

I also tried this one
gprof -a /root/install/lib/gcc/TARGET/VERSION/cc1 gmon.out > output

 but i am getting the same profiles for any program i compile.i have been
 struggling to get this done for a long time.can somebody please help
 me.thanx in advance.

It isn't clear what your problem is. What profiles are you getting? Why do you think they are wrong?


Gcc contains multiple programs. If you compiled all of them with profile info, then the profile output files may be overwriting each other. Use gcc -v to see what all the gcc driver does, and try running individual programs instead of running the gcc driver.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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