top | item 28162574

(no title)

arcatek | 4 years ago

That's the article I used when I implemented exceptions in an LLVM-based compiler, so it's applicable to more than just GCC.

discuss

order

nicolasbrailo|4 years ago

Is your work public? If my article was useful, I'd love to have a look at what you did!

arcatek|4 years ago

It's public, but I doubt it still compiles against recent LLVM versions! I started it 8 years ago to get a better understanding how features like classes & operator overload would work in a JS-like language. It was really fun!

https://github.com/castel/libcastel/blob/master/runtime/sour...

https://github.com/castel/libcastel/blob/master/runtime/sour...

I remember that at the time there were very few resources on personality functions, even in the LLVM doc - I had to make a lot of research before finding your articles, which were extremely helpful!

I got reminded of them yesterday after someone pinged me on a Stack Overflow answer I made at the time, asking for an updated link; after I found your long-form article I figured it would be a good topic for HN as well :)

https://stackoverflow.com/questions/16597350/what-is-an-exce...