This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How GCC handle exceptions under Linux?


On 11 December 2012 15:54, Borneq wrote:
> Linux standard has no exceptions handling as is in Windows.
> In assembly files generated by GCC are references to functions:
> _cxa_allocate_exception, __cxa_throw, __cxa_begin_catch and __cxa_end_catch.
> It not Linux bot GCC standard?

No, it's an ABI standard used by several compiler vendors, see
http://mentorembedded.github.com/cxx-abi/abi-eh.html

> Bot are hardware exceptions like dividing by zero or reference to denied
> memory. It must cooperate with system? Exceptions use Linux signals?

No. Hardware exceptions and signals are not mapped to C++ exceptions.
C++ exceptions are designed for error handling, not for handling
asynchronous events like signals.

> Where I
> can find detailed description of GCC exceptions algorithm ?

There is information at the link above, and in the GCC source code,
and http://llvm.org/docs/ExceptionHandling.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]