CppCon 2017: Dave Watson “C++ Exceptions and Stack Unwinding”
CppCon · 2 位 HN 用户推荐 · 2018–2025
I watched a few talks [1] about how C++ exception handling works, and they try to avoid branches/setup blocks in the "happy path". It works a little like longjmp() in C, where you just set the instruction pointer say three function calls down in the stack. But then you have to look up all the exception handlers to run in precomputed tables (which doesn't happen in C). So I wonder if something like
— chubot, 2018[2]: [link] [3]: [link]
— inetknght, 2025