These days there are many C++ compilers available for developing embedded software. However, they often provide a restricted set of language features, or have the facility to switch-off certain features. Some examples are given below, and from these it seems the feature most likely to be omitted is exception handling.
ARM’s C++ compiler has exceptions disabled by default.
IAR’s compiler supports exceptions, but can also be run in ‘Embedded C++’ mode (see below), or their own rather less-restricted ‘Extended Embedded C++’ mode (just lacks RTTI and Exceptions).
The Embedded C++ language (EC++) lacks the following features:
- Multiple inheritance
- Virtual base classes
- Run-time type information (RTTI)
- New style casts (static_cast, dynamic_cast, reinterpret_cast, and const_cast)
- The mutable type qualifier