fay59 / fcd

An optimizing decompiler
http://zneak.github.io/fcd
Other
701 stars 70 forks source link

Catch exceptions in main()? #11

Closed elfring closed 8 years ago

elfring commented 8 years ago

I expect that exception handling is usually supported by a C++ program. I wonder why your function "main" does not contain corresponding try and catch instructions so far.

How do you think about recommendations by Matthew Wilson in an article?

Would you like to adjust the implementation if you consider effects for uncaught/unhandled exceptions like they are described by Danny Kalev?

fay59 commented 8 years ago

It does not contain any because fcd does not throw any. LLVM needs to be built with -fno-exceptions, so even if I wanted to throw exceptions myself, it would be unsafe to do so. As a consequence, fcd also compiles with -fno-exceptions.

Trass3r commented 8 years ago

One of the best things about the llvm codebase. No exceptions and no RTTI.