[cfe-dev] RFC: Support x86 interrupt and exception handlers

Anton Korobeynikov via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 9 16:47:11 PDT 2015

> For what it's worth, there's precedent for this in clang. We already support
> __attribute__((interrupt)) on ARM and MSP430. Neither of them introduce a
> new calling convention at the Clang level. I think MSP430 adds one at the
> LLVM level, but I don't think it matters.
No. MSP430 interrupts are not using anything different compared to the
ordinary CC.
It only causes additional codegen sugar, so the interrupt handler
could be easily pinned to a particular interrupt vector #

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the cfe-dev mailing list