Microsoft-specific exception handling mechanisms: Difference between revisions

Content deleted Content added
Luke1337 (talk | contribs)
Luke1337 (talk | contribs)
x86-64: Clarify
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 19:
==== x86-64 ====
SEH on 64-bit Windows does not involve a runtime exception handler list; instead, it uses a [[Call stack#Unwinding|stack unwinding]] table (<code>UNWIND_INFO</code>) interpreted by the system when an exception occurs.<ref>{{cite web |title=Exceptional Behavior - x64 Structured Exception Handling |url=https://www.osronline.com/article.cfm%5earticle=469.htm |publisher=The NT Insider}}</ref><ref>{{cite web |title=x64 exception handling |url=https://docs.microsoft.com/en-us/cpp/build/exception-handling-x64?view=vs-2019 |website=VC++ 2019 documentation |language=en-us}}</ref>
This means that the compiler does not have to generate extra code to manually perform stack unwinding and to call exception handlers appropriately. It merely has to emit information in the form of unwinding tables about the stack frame layout and specified exception handlers.
 
=== Support ===