Compiler Internals: Exceptions and RTTI Igor Skochinsky Hex-RaysRecon 2012 Montreal2(c) 2012 Igor SkochinskyOutlineOutlineVisual C++ Structured Exception Handling (SEH) C++ Exception Handling (EH)GCC RTTI SjLj exceptions Zero-cost (table based)3(c) 2012 Igor SkochinskyVisual C++SEH vs C++ EH SEH (Structured Exceptions Handling) is the low-level, system layer Allows to handle exceptions sent by the kernel or raised by user code C++ exceptions in MSVC are implemented on top of SEH4(c) 2012 Igor