This is the mail archive of the
mailing list for the libstdc++ project.
Re: How GCC handle exceptions under Linux?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Borneq <borucki dot andrzej at gmail dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 11 Dec 2012 17:03:34 +0000
- Subject: Re: How GCC handle exceptions under Linux?
- References: <firstname.lastname@example.org>
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
> 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,