i am getting same profile(for gcc) for all testcases
Jim Wilson
wilson@specifixinc.com
Thu Mar 4 21:10:00 GMT 2004
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
More information about the Gcc
mailing list