On Tue, Jan 18, 2011 at 03:32:05PM +0100, Roman Divacky wrote: > 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? Hwpmc requires additional work for each new CPU model. Also, hwpmc is not supported even on all Intel or AMD CPUs, esp. older models, and e.g. VIA cores.
Not to mention !x86 architectures.
pgpi3aP1UgpBX.pgp
Description: PGP signature
