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]

Re: Profiling and C++


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


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