GCC: accessing exceptiond from C?

Kai Henningsen kaih@khms.westfalen.de
Sat Mar 30 10:05:00 GMT 2002


Is it currently (that is, in any version in CVS) possible to access the  
gcc exception machinery from C (that is, throw and catch exceptions of  
some kind), possibly via some builtins and/or libsupc++ routines?

If yes, can I have some pointers, please?

If no, what would be needed for that? How much effort might that be?

I recently had several project ideas where this would be anything from  
rather useful to essential. Sure, it's always possible to construct  
exceptions around setjmp() (that's what GNUstep does, for example), but  
it's rather hard to reasonably integrate that stuff with C without  
compiler support - and I'd rather avoid full-blown C++.

MfG Kai



More information about the Gcc mailing list