modm API documentation
C++ Standard Environment

lbuild module: modm:stdc++

Refines the C++ language to make it easier to use on embedded targets. Depending on the module options, the compiler options are appended with either:

or:

The std::atomic interface is implemented for the AVR and Cortex-M devices.

AVR

A partial port of GCC libstdc++ is provided: See https://github.com/modm-io/avr-libstdcpp.

Module Options

modm:stdc++:exceptions: C++ Exceptions

Enables the full use of C++ exception handling.

Warning
Check your code size The inclusion of the stack unwind tables will increase your code size quite a bit. Check whether your target has enough memory for this!

Generated with: no in [yes, no]

modm:stdc++:rtti: C++ Runtime Type Information

Enables the full use of C++ runtime type information.

Warning
Check your code size The inclusion of the RTTI information will increase your code size quite a bit. Check whether your target has enough memory for this!

Generated with: no in [yes, no]

modm:stdc++:safe_statics: C++ Safe Statics Initialization

Enables safe initialization of statics inside functions and interrupts. In case of recursive initialization the debug assertion stat.rec is raised.

Further reading on this topic:

Generated with: yes in [yes, no]