GNU C++ and exceptions?

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

My plan is to use C++ on my simple microcontroller project. I have not much experience with C++ on microcontrollers except that I know that traditionally exceptions have been a tricky and buggy on new processor architectures.

A small try/catch/throw test of exceptions on an EVK1100 showed that at least basic functionality is working and at least destructors are called for the objects in the call stack to be unwinded.

However, I might have overlooked something. What do you suggest to test further?

Attachment(s): 

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

Very few readers...

Do I guess correctly that "C++" is akin to taboo in the microcontroller world?

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

There are a lot of test cases shipped with GCC, perhaps they cover what you want to do?

Libboost should also exercise the compiler a lot, unsure if libboost has a lot of examples.

Hans-Christian

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

Big thanks :)

I'll let you wonderful guys know about the results ASAP :)

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

Haven't had time to dig out the gcc test cases :(

However, my 5 KLOC C++ code works correctly. It wastes 123 kilobytes of flash.