How to get started with the LLVM C API
pauladamsmith.com
pauladamsmith.com
The problem is that there is no standard ABI call for C++, as implentation is vendor-specific (it may change even for same vendor between different compiler versions (!)). It would be hard to "fix" that, e.g. virtual function tables, exceptions, etc. For standard bindings, C is the only sane option.
"If you insist on sticking to a conventional C style of C++ code, you’ll get conventional C-style problems" - Bjarne Stroustrup (http://www.informit.com/articles/article.aspx?p=2080042)
I really hope we see more DSLs being written, and that it is easy to integrate with them on the back of LLVM.
https://pauladamsmith.com/blog/2015/01/how-to-get-started-wi...