Jump to ratings and reviews
Rate this book

Real-Time C++: Efficient Object-Oriented and Template Microcontroller Programming

Rate this book
With this book, Christopher Kormanyos delivers a highly practical guide to programming real-time embedded microcontroller systems in C++. It is divided into three parts plus several appendices. Part I provides a foundation for real-time C++ by covering language technologies, including object-oriented methods, template programming and optimization. Next, part II presents detailed descriptions of a variety of C++ components that are widely used in microcontroller programming. It details some of C++'s most powerful language elements, such as class types, templates and the STL, to develop components for microcontroller register access, low-level drivers, custom memory management, embedded containers, multitasking, etc. Finally, part III describes mathematical methods and generic utilities that can be employed to solve recurring problems in real-time C++. The appendices include a brief C++ language tutorial, information on the real-time C++ development environment and instructions for building GNU GCC cross-compilers and a microcontroller circuit.

For this second edition, the most recent specification of C++14 in ISO/IEC 14882:2014 is used throughout the text. Several sections on new C++14 functionality have been added, and various others reworked to reflect changes in the standard. Also two new sample projects are introduced, and various user suggestions have been incorporated. To facilitate portability, no libraries other than those specified in the language standard itself are used. Efficiency is always in focus and numerous examples are backed up with real-time performance measurements and size analyses that quantify the true costs of the code down to the very last byte and microsecond.

The target audience of this book mainly consists of students and professionals interested in real-time C++. Readers should be familiar with C or another programming language and will benefit most if they have had some previous experience with microcontroller electronics and the performance and size issues prevalent in embedded systems programming.

378 pages, Hardcover

First published December 31, 2012

Loading...
Loading...

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
9 (37%)
4 stars
11 (45%)
3 stars
2 (8%)
2 stars
2 (8%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
1 review
March 9, 2026
Represents the worst (imo) kind of C++ programming. Whilst the concepts presented are not inherently bad, they are presented without any real explanation/justification as to WHY they are a good idea. I sometimes wish embedded development could recede back to simple procedural C/ASM programs 😢 rather than multilayer APIs to flip a single bit in a register… Still, reading this book made me glad I’m a an electrical engineer who has to program occasionally rather than the other way round, so my gripes with modern software development only come up every now and again.
35 reviews
December 5, 2024
I read 4th edition.

while it contained a lot, I was still missing some concepts such as constexpr if or memory resources/polymorphic allocators.

Provides a good general introduction on the topic with a lot of references for a further study.
Displaying 1 - 2 of 2 reviews