> Mind you, does GCC handle exceptions properly now? I remember
> there used to be issues there (was it that exceptions and
> optimization didn't get on, or something?).
It does (e.g., gcc-2.95.2). The old implementation---what too many people
still see in gcc 2.7.2---is long since gone. In its place is a highly
integrated implementation that behaves really well, and causes significantly
less code growth than the earlier method. Most platforms, linux included, are
now using the data-based exception table approach, which has the good
side-effect of having no impact on execution time if an exception's never
thrown.
The backend of the compiler's now quite intelligent about how to optimize code
that's contained in exception regions, and how to properly move those about
(including register allocation) without totally blowing it.
http://gcc.gnu.org/ has lots of info about the current state of things, and
what's been put in over the last few years. These days gcc is a pretty
awesome C++ compiler. (Even ignoring my own bias towards it.)
B
--
Brendan Kehoe
Web page: http://www.zen.org/~brendan/
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!