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]

how to compile gcc with profiling on..


 Hi,
   I am trying to compile gcc(any version) with profiling on in the sense
   that when ever i compile a program say "gcc some.c" i should get the
   profile of gcc what happend in 'gcc' not in 'some.c'.then i nee to run
   all the test cases in gcc and get the profiles of gcc in each case.
i thought i should do that at building time..i tried the following...but
was not successful.can anybody help me in compiling gcc with profiling
on.i already have gcc3.2.2 in my system.i am using debian.and i am new to
linux.any help will be greatly appreciated.thanx in advance...
 checkout GCC of the interesting version somewhere (/src/gcc)
>
> % cd /src/
> % mkdir devel inst; cd devel
> % CFLAGS="-g -pg" ../gcc/configure --prefix=/src/inst \
>   --enable-languages=c,c++
> % make -j 8
>(make bootstrap and make profiledbootstrap also)


regards,
Ranganath




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