C++ For Embedded Systems
Embedded systems have limited resources and are difficult to debug. We follow the Google C++ Style Guide with the following exceptions. If the source files are intended to be used in an application where the application:
- runs on a processor without an MMU; or
- runs on on-chip memory; or
- needs to be stored in on-chip memory; or
- cannot be simulated on PC
The following C++ features are not allowed:
dynamic_castbecause of performance overheadtemplatebecause of memory overhead (allowed, but use with caution)- exception handling
- STL because no implementation so far is fast and lean enough