This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Profiling and C++
- To: gcc at gcc dot gnu dot org
- Subject: Re: Profiling and C++
- From: John Levon <moz at compsoc dot man dot ac dot uk>
- Date: Wed, 18 Jul 2001 16:48:46 +0100
- References: <20010718115218.A4591@kivc.vstu.vinnica.ua>
On Wed, Jul 18, 2001 at 11:52:18AM +0300, Bohdan Vlasyuk wrote:
> Is it true that I can't do any profiling with my C++ programs?
no
> I've tried it, and it doesn't seem to work for me.
>
> That's piece of makefile:
>
> CC = g++
> CFLAGS = -g -pg
> LFLAGS = $(CFLAGS)
> LIBS =
> COMPILE = $(CC) $(CFLAGS) -c
>
> LINK = $(CC) $(LFLAGS) $(LIBS)
probably need -g -pg for the final link stage too.
john
--
"Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything."
- Karl Lehenbauer