throwing C++ exceptions across C frames

David Edelsohn dje@watson.ibm.com
Tue Dec 31 03:18:00 GMT 2002


	Compile the C code with -fexceptions option?

"Enable exception handling.  Generates extra code needed to propagate
exceptions.  For some targets, this implies GCC will generate frame unwind
information for all functions, which can produce significant data size
overhead, although it does not affect execution.  If you do not specify
this option, GCC will enable it by default for languages like C++ which
normally require exception handling, and disable it for languages like C
that do not normally require it.  However, you may need to enable this
option when compiling C code that needs to interoperate properly with
exception handlers written in C++.  You may also wish to disable this
option if you are compiling older C++ programs that don't use exception
handling."

David



More information about the Gcc mailing list