Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Many people know C++ since it is essentially an extension of the C language. C++ compromises a combination of both high-level and low-level language features. Being one of the most popular programming languages, C++ is basically used in every single application domain, and it offers programmers the freedom to write device drivers and other software that rely on direct manipulation of hardware under real-time constraints. With that being said, let’s take a look at C++ 's usage in embedded/low level environments.

C++ With FreeRTOS:

...

in an Embedded/Low Level Environment:

To start off, anything that can be done in C, C++ can also do, as previously stated, C++ is basically a superset of C. For example, in FreeROTS, FreeRTOS can work with or work alongside a C++ embedded application. All of the FreeRTOS headers are wrapped in extern "C" {}blocks to ensure correct linkage in a C++ application. Therefore, it is quite easy to get FreeRTOS to work with C++. Moreover, C++'s addition of OOP provides overloaded functions and constructors which can be considered an asset for embedded systems programming.