How does exception handling on other architectures (e.g. ARM) differ from x86? #1136
Answered
by
bjorn3
kennystrawnmusic
asked this question in
Questions
-
Just need to get an idea for how to go about handling exceptions on foreign CPUs in the event that it becomes necessary to port to them, since as far as I'm aware there's no, for example, |
Beta Was this translation helpful? Give feedback.
Answered by
bjorn3
Aug 29, 2022
Replies: 1 comment
-
If there is no dedicated call conv implemented in rustc, you will have to write some |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kennystrawnmusic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there is no dedicated call conv implemented in rustc, you will have to write some
global_asm!()
to translate from the platform interrupt call conv to the C call conv and then call anextern "C"
function with the rust code for the interrupt handler.