HomeC++ For Embedded Systems

C++ For Embedded Systems

C++ For Embedded System
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 to be stored in on-chip memory; or
  • cannot be simulated on PC

These following C++ features are not allowed;

  • dynamic_cast because of performance overhead
  • template because of memory overhead, allowed but use with caution
  • exception handling
  • STL because no implementation so far is fast and lean enough

Leave a Reply

Your email address will not be published. Required fields are marked *