* exception performance in modern gcc
@ 2009-02-10 22:08 Brendan Miller
2009-02-11 1:17 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Brendan Miller @ 2009-02-10 22:08 UTC (permalink / raw)
To: gcc-help
Various places online indicate that throwing exceptions has fairly
poor perforamnce on older versions of G++; however, I'm having a hard
time finding benchmarks for modern 4.x G++. Does anyone have
experience with this? Are there any good benchmarks on modern GCC?
I understand that exceptions aren't meant to be thrown often, so it
doesn't usually matter if exceptions are a little slow, but I'd like
to understand the performance a little better. If anyone knows where I
can find notes on how the exception propagation mechanism works at a
fairly low level that would also be helpful. I'm trying to get a
picture of where the costs come from, aside from calling destructors
as the stack unwinds.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: exception performance in modern gcc
2009-02-10 22:08 exception performance in modern gcc Brendan Miller
@ 2009-02-11 1:17 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2009-02-11 1:17 UTC (permalink / raw)
To: Brendan Miller; +Cc: gcc-help
Brendan Miller <catphive@catphive.net> writes:
> I understand that exceptions aren't meant to be thrown often, so it
> doesn't usually matter if exceptions are a little slow, but I'd like
> to understand the performance a little better. If anyone knows where I
> can find notes on how the exception propagation mechanism works at a
> fairly low level that would also be helpful. I'm trying to get a
> picture of where the costs come from, aside from calling destructors
> as the stack unwinds.
The exception unwinding mechanism used by gcc is described at
http://www.codesourcery.com/public/cxx-abi/abi-eh.html . Ignore the
word "Itanium."
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-11 1:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-10 22:08 exception performance in modern gcc Brendan Miller
2009-02-11 1:17 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).