* [Linux-ia64] Profiling
@ 2000-05-23 20:28 Ken Simpson
2000-05-23 23:44 ` Jim Wilson
0 siblings, 1 reply; 2+ messages in thread
From: Ken Simpson @ 2000-05-23 20:28 UTC (permalink / raw)
To: linux-ia64
Hi all,
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... The -a option (for
basic block profiling) merely causes an internal compiler error.
I am using build 0505 of IA64 TurboLinux. Has anyone else had
trouble using the profiler?
Thanks,
Ken Simpson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Linux-ia64] Profiling
2000-05-23 20:28 [Linux-ia64] Profiling Ken Simpson
@ 2000-05-23 23:44 ` Jim Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2000-05-23 23:44 UTC (permalink / raw)
To: linux-ia64
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-23 23:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-23 20:28 [Linux-ia64] Profiling Ken Simpson
2000-05-23 23:44 ` Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox