4 ms·
Why is this marked as dupe? Yes, there were already posts about exception handling ( "Catching Exceptions" [1]), "Better Exception Messages" [2], and "Returning
by phil-opp 10y ago
Why is this marked as dupe? Yes, there were already posts about exception handling ( "Catching Exceptions" [1]), "Better Exception Messages" [2], and "Returning from Exceptions" [3]). These posts used naked functions and a lot of inline assembly for exception handling.
This is a new post that I published today. It uses the new `x86-interrupt` calling convention [4] instead of naked functions, which is much easier.
[1]: https://os.phil-opp.com/catching-exceptions.html https://os.phil-opp.com/catching-exceptions.html
[2]: https://os.phil-opp.com/better-exception-messages.html https://os.phil-opp.com/better-exception-messages.html
[3]: https://os.phil-opp.com/returning-from-exceptions.html https://os.phil-opp.com/returning-from-exceptions.html
[4]: https://github.com/rust-lang/rust/pull/39832 https://github.com/rust-lang/rust/pull/39832