This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

interrupts in C++ / cpp ARM / Realview compiler

Hello,

has anybody expierienced with the Realview Compiler (ARM) and C++ interrupt programming?
How can I call an non static method as a interrupt handler? I use ATMEL AT91SAM7 controllers.
It's not easy if one has just started to learn C++ at all ... (the reviews I found haven't helped me much).

Parents Reply Children
  • Andy,
    I read the article. My personal opinion is that the risks that are introduced into software by using C++ are far greater than the mild benefits of stripped embedded C++. Yes, sometimes I'm DIEING to able to inherit, but for me, in comes down to the following: writing correct C++ code is far more challenging that writing C code. performance might be more of less the same (given a good compiler and some size trade-offs) but still - I would not use it for really low-level software.

  • Why might you prefer to write low-level code in C++ rather than in C? You've got much to gain and little or nothing to lose.

    Thank you for the link, but I'll stick to C :-) There is actually a lot to loose: C++ is much harder to learn and use. And the only real-world example in the article is not convincing at all...