Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2011 15:32:05 +0100
From:      Roman Divacky <rdivacky@freebsd.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: How to build an executable with profiling?
Message-ID:  <20110118143205.GA34216@freebsd.org>
In-Reply-To: <20110117184411.GA54556@troutmask.apl.washington.edu>
References:  <20110117184411.GA54556@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, Jan 17, 2011 at 10:44:11AM -0800, Steve Kargl wrote:
> How does one build an executable for profiling with clang?
 
LLVM (and thus clang) does not support GPROF profiling. 

> clang -o testf -O2 -march=native -pipe -static -pg -I/usr/local/include -I../mp testf.c -L/usr/local/lib -L../mp -lsgk -lmpfr -lgmp -L/usr/home/kargl/work/lib -lm_clang_p
> clang: warning: the clang compiler does not support '-pg'
> 
> I suppose it will be pointless to ask, but shouldn't clang
> support one of the most basic gcc compiler options if clang
> is to replace gcc as the base system compiler?

is GPROF really needed at this point? we have HWPMC, isnt
it sufficient?

roman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110118143205.GA34216>