AVR32, GCC and c++ exceptions

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

I'm a software developer currently involved in a project which is having a hardware redesign.
We are looking at the AVR32 as a candidate for the new platform and having difficulties obtaining detailed information from Atmel.

The current project code is C++ compiled with GCC targeted at RedHat Linux running on x86.
The code makes heavy use of c++ exceptions which I have been informed by Atmel aren't supported for some reason.

Does anyone know of this issue and can give more information? Is there any way to get c++ exceptions running on AVR-32 using GCC? Any other suggestions?

Thanks
Rob :D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You've heard right, C++ exceptions aren't yet supported. Why? Well, just because that bit of work hasn't yet been done. The AVR32 is pretty new and C++ exceptions take some non-trivial work to make happen in the compiler, it isn't simply a bit of code which translates to a simple string of ASM!

Also not supported AFAIK is thread local storage, but I think that's about it (CMIIW).

I'm not enough of a C++ guru to know of a way around this at the app level, at least not without a pretty major app rewrite but I'm supposing you're keen to avoid that!

If Atmel get enough "we /would/ by a metric butt-tonne of your chips if the avr32-gcc supported exceptions" messages they hopefully will push the task up the priority stack a little but I guess we'll have to wait and see.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok thanks for that. Bit frustrating as it looks like a brilliant platform otherwise!

The search continues...