C++ and interrupt handling routines

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • C++ and interrupt handling routines

    How are you supposed to deal with the symbol name mangling in C++ in regards to fixed interrupt handler function names called from assembler startup code?
    Right now I have to wrap my C++ interrupt handler functions in extern "C" {...} to tell my compiler to export these names straight, without C++ mangling.
    I am not 100% sure how the extern "C" { } will affect all the C++ code inside these IRQ functions... like references to the objects, member functinos etc... Does it refer to the function name mangling only?
    Is there another way to deal with this issue?