Wednesday, August 31, 2016

C++ to Create Better Device Software

C++ to Create Better Device Software ebook


C++ is thus slowly but steadily replacing C as the programming language of choice for embedded or device software development. While C++ (or at least some of its features) has often (falsely 1 ) been considered prohibitively resource intensive for embedded devices, especially with today's available powerful embedded hardware and mature compiler and build system technology, this is certainly no longer the case. Under certain circumstances the code generated by a state-of-the-art C++ compiler may even be more efficient than the code produced by a C compiler. What makes C++ unique among programming languages is that it there seem to be two causes for this: a missing understanding about the internals of C++, and bad experiences with early compilers, which really produced inefficient (or even wrong) code in some cases.

This paper introduces two ANSI C++ techniques that can be used to write more reliable and robust code for embedded systems. A special focus will be on the performance implications of certain language features, by taking a detailed look at what happens “behind the scenes”.

Pages:12
File size:369.39KB

0 comments:

Post a Comment