RE: [ILUG] signals and c++

From: Brendan Kehoe (brendan at domain zen.org)
Date: Wed 02 Feb 2000 - 11:16:52 GMT


> 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/


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:20 GMT