This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: Exception handling


On 29/05/17 10:00, Flis, Przemyslaw (Nokia - PL/Wroclaw) wrote:

> as far as I know, the way of handling exceptions "under the hood" is
> not defined in C++ standard. In "Technical report on C++
> performance" from 2008, I've found two main approaches to exception
> handling - so called "code" and "table" approach. Is there any way
> to determine which is used by gcc compiler?

I've never seen anything except "table".

> Does it depend on platform (i.e. ARM, x86 etc.) or compiler version?

It depends on the processor-speific ABI, which is defined by the
operating system.  For example,

http://refspecs.linuxfoundation.org/elf/x86_64-abi-0.95.pdf

at

http://refspecs.linuxfoundation.org/

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


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