From: Jim Wilson <wilson@cygnus.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Profiling
Date: Tue, 23 May 2000 23:44:17 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590678205105@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590678205104@msgid-missing>
I'm trying to profile a large program using gcc's -pg option and gprof,
but so far have met with little success. It seems that -pg is causing the
compiler to generate a certain amount of crappy code...
-pg profiling is bleeding edge stuff. It is not supported by the February
toolchain release. Patches exist for gcc and gprof that were written by
David Mosberger. The gcc patches have been merged into the FSF gcc sources,
but there is no usable FSF gcc yet. I doubt that the gprof patches have been
merged in yet. I have not yet tried to use -pg myself.
The -a option (for
basic block profiling) merely causes an internal compiler error.
I'd avoid -a like the plague. It has never been useful except for a few
CISC machines like the x86. It is known to be broken for most RISC targets,
and it will probably never work for IA-64 without a redesign.
If you want basic block profiling, you are better off using gcov and the
-fprofile-arcs/-ftest-coverage options. This works for all targets, if it
works at all. I don't know if it works with the February release though.
Jim
prev parent reply other threads:[~2000-05-23 23:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-23 20:28 [Linux-ia64] Profiling Ken Simpson
2000-05-23 23:44 ` Jim Wilson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590678205105@msgid-missing \
--to=wilson@cygnus.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox