eBook Real-Time C++, 1st Edition

  • Published By:
  • ISBN-10: 364234688X
  • ISBN-13: 9783642346880
  • DDC: 005.133
  • Grade Level Range: College Freshman - College Senior
  • 357 Pages | eBook
  • Original Copyright 2013 | Published/Released June 2014
  • This publication's content originally published in print form: 2013
  • Price:  Sign in for price



The C++ language has powerful object-oriented and template features that can improve software design and portability while simultaneously reducing code complexity and the risk of error. Furthermore, C++ compiles highly efficient native code. This unique and effective combination makes C++ well-suited for programming microcontroller systems that require compact size, high performance and safety-critical reliability. With this book, Chris 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. The most recent specification of C++11 in ISO/IEC 14882:2011 is used throughout the text.

Table of Contents

Front Cover.
Half Title Page.
Title Page.
Copyright Page.
1: Language Technologies for Real-Time C++.
2: Getting Started with Real-Time C++.
3: Working with a Real-Time C++ Program on a Board.
4: An Easy Jump-Start in Real-Time C++.
5: Object-Oriented Techniques for Microcontrollers.
6: C++ Templates for Microcontrollers.
7: Optimized C++ Programming for Microcontrollers.
8: Components for Real-Time C++.
9: Accessing Microcontroller Registers.
10: The Right Start.
11: Low-Level Hardware Drivers in C++.
12: Custom Memory Management.
13: C++ Multitasking.
14: Mathematics and Utilities for Real-Time C++.
15: Floating-Point Mathematics.
16: Fixed-Point Mathematics.
17: High-Performance Digital Filters.
18: C++ Utilities.
19: Extending the C++ Standard Library and the STL.
20: Additional Reading.
Appendix A: A Tutorial for Real-Time C++.
Appendix B: A Robust Real-Time C++ Environment.
Appendix C: Building and Installing GNU GCC Cross Compilers.
Appendix D: Building a Microcontroller Circuit.