Under the Hood: From Win32 seh to CLI Exception Handling Model

Source: Internet
Author: User
Tags thread logic knowledge base

We recommend five classic articles about exception handling, and a roadmap about its general development history. I used to have a rough understanding of the implementation mechanism of exception handling. I have read it over the past two days, and I feel more and more memorable, we can vaguely see the shadows of many ideas, such as stackwalking, managed thread logic stack reuse, and dynamic monitoring Point Insertion during compilation, which are frequently used by sscli. In fact, the ideas are consistent and consistent, the development stages are different. If you are surprised by the EE implementation in rotor 2 like me, take a look at the following articles.ArticleTo learn more about the ins and outs of EH and its evolution, it is interesting to say that :)

[1] Win32 seh: the most basic Exception Handling Mechanism
[2] structured exception handling mechanism supported by the compiler in vc6
[3] exception handling mechanism supported by buffer overflow detection and compiler in vs2005
[4] object-oriented Exception Handling Mechanism in C ++ and Its Compiler support
[5] The stack structure in CLI and Its Exception Handling Model

Document link:
A. a crash course on the depths of Win32 structured exception handling. Matt pietrek. MSJ, Jan. 1997
B. How a C ++ compiler implements Exception Handling. Vishal Kochhar. The Code project, Apr. 2002
C. c ++ compiler how to handle exceptions (translated above). Translator: local variable. VC Knowledge Base
D. Reversing Microsoft Visual C ++ Part I: Exception Handling. igorsk. openrce.org, Mar. 2006
E. the CLI exception model. cbrumme's weblog, Oct. 2003.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.