This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
how to compile gcc with profiling on..
- From: <perugupa at csee dot wvu dot edu>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 27 Jan 2004 13:30:07 -0500 (EST)
- Subject: 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