Skip to main content
  • Book
  • © 2018

Real-Time C++

Efficient Object-Oriented and Template Microcontroller Programming

  • Step-by-step introduction to using real-time C++ for microcontrollers
  • Accompanied by extensive sample code and online material (including more than ten introductory projects and one reference application)
  • Uses the most recent specification of C++17 in ISO/IEC 14882:2017
  • Puts special emphasis on performance, scalability, and portability

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (18 chapters)

  1. Front Matter

    Pages i-xxxiii
  2. Language Technologies for Real-Time C++

    1. Front Matter

      Pages 1-1
    2. Getting Started with Real-Time C++

      • Christopher Kormanyos
      Pages 3-19
    3. Working with a Real-Time C++ Program on a Board

      • Christopher Kormanyos
      Pages 21-33
    4. An Easy Jump Start in Real-Time C++

      • Christopher Kormanyos
      Pages 35-60
    5. Object-Oriented Techniques for Microcontrollers

      • Christopher Kormanyos
      Pages 61-84
    6. C++ Templates for Microcontrollers

      • Christopher Kormanyos
      Pages 85-112
    7. Optimized C++ Programming for Microcontrollers

      • Christopher Kormanyos
      Pages 113-141
  3. Components for Real-Time C++

    1. Front Matter

      Pages 143-143
    2. Accessing Microcontroller Registers

      • Christopher Kormanyos
      Pages 145-154
    3. The Right Start

      • Christopher Kormanyos
      Pages 155-169
    4. Low-Level Hardware Drivers in C++

      • Christopher Kormanyos
      Pages 171-204
    5. Custom Memory Management

      • Christopher Kormanyos
      Pages 205-217
    6. C++ Multitasking

      • Christopher Kormanyos
      Pages 219-230
  4. Mathematics and Utilities for Real-Time C++

    1. Front Matter

      Pages 231-231
    2. Floating-Point Mathematics

      • Christopher Kormanyos
      Pages 233-265
    3. Fixed-Point Mathematics

      • Christopher Kormanyos
      Pages 267-289
    4. High-Performance Digital Filters

      • Christopher Kormanyos
      Pages 291-307
    5. C++ Utilities

      • Christopher Kormanyos
      Pages 309-325
    6. Extending the C++ Standard Library and the STL

      • Christopher Kormanyos
      Pages 327-348

About 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 third edition, the most recent specification of C++17 in ISO/IEC 14882:2017 is used throughout the text. Several sections on new C++17 functionality have been added, and various others reworked to reflect changes in the standard. Also several new sample projects are introduced and existing ones extended, 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.

Authors and Affiliations

  • Reutlingen, Germany

    Christopher Kormanyos

About the author

Christopher Kormanyos is a senior system architect at a major automotive supplier with 25 years of experience in software development, microcontroller system design and application deployment. Chris is well-connected in the microcontroller industry and has strong professional ties to both tier-one silicon suppliers as well as compiler and tool vendors. He received a PhD in experimental particle physics from the University of Colorado in 1994 and also holds several patents for automotive electronic technologies.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access