Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2011 16:43:13 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        freebsd-toolchain@freebsd.org, Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject:   Re: How to build an executable with profiling?
Message-ID:  <20110118144313.GO2518@deviant.kiev.zoral.com.ua>
In-Reply-To: <20110118143205.GA34216@freebsd.org>
References:  <20110117184411.GA54556@troutmask.apl.washington.edu> <20110118143205.GA34216@freebsd.org>

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

--8lT/blNmSiRvUClR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?
> =20
> LLVM (and thus clang) does not support GPROF profiling.=20
>=20
> > clang -o testf -O2 -march=3Dnative -pipe -static -pg -I/usr/local/inclu=
de -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'
> >=20
> > 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?
>=20
> 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.

--8lT/blNmSiRvUClR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk01pwEACgkQC3+MBN1Mb4jOAQCcDN9NMwDccY3EEPsuvT7VQVlD
OlAAoKkqq42q0WR9R31sY2twr8oYqoH/
=lL3s
-----END PGP SIGNATURE-----

--8lT/blNmSiRvUClR--



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