C++ in Embedded Systems : A practical transition from C to modern C++ - Amar Mahmutbegovi?

eBOOK

C++ in Embedded Systems

A practical transition from C to modern C++

By: Amar Mahmutbegovi?

eBook | 20 June 2025

At a Glance

eBook


RRP $61.59

$55.99

or 4 interest-free payments of $14.00 with

 or 

Available: 20th June 2025

Preorder. Download available after release.

Read on
IOS
Android
Desktop
Windows
eReader

Go beyond C by applying modern C++ in embedded systems to enhance code readability, maintainability, and scalability

Key Features

  • Bridge the gap between C and modern C++ for embedded systems through practical examples
  • Learn how to save memory and cut down on runtime computing using compile-time computation techniques
  • Improve your software design skills by applying patterns to solve common problems in embedded systems using C++
  • Purchase of the print or Kindle book includes a free PDF eBook

Book Description

Transitioning from C can be daunting, and developers often worry about overhead, complexity, and tooling. This book helps you tackle these challenges with zero-cost abstractions, compile-time checks, and powerful modern C++ capabilities, ensuring you preserve performance while achieving safer, clearer code. Written by an engineer experienced in consumer electronics and medical devices, this book bridges the gap between traditional C and advanced C++ techniques, and enables you to apply modern C++ features to build robust and maintainable firmware. You'll begin by setting up a modern development environment, including a Docker container for easy example replication. The chapters address C++ standard library challenges in memory-constrained settings and introduce the Embedded Template Library (ETL) as an alternative. You'll grasp essential C++ concepts, and explore advanced topics such as templates, strong typing, error handling, compile-time computation, and RAII. You'll also learn to implement a sequencer, write a type-safe HAL, and apply patterns like Command, State, and Observer to solve common embedded development problems. By the end of this book, you'll have learned how to apply modern C++ to develop robust, modular firmware with performance matching or exceeding hand-coded C solutions.

What you will learn

  • Debunk myths about C++ in embedded systems
  • Set up build automation for C++ in constrained environments
  • Utilize strong types to ensure type-safety
  • Find out how to apply techniques such as Resource Acquisition Is Initialization (RAII)
  • Using Domain Specific Language (DSL) with an example of Boost SML
  • Discover how to apply software development best practices like SOLID

Who this book is for

This book is for embedded developers who primarily use C and want to adopt a modern C++ approach. It covers fundamental C++ concepts, making it accessible to beginners, while assuming basic familiarity so that you can fully leverage advanced features like compile-time computation. Even those with some C++ background will learn new ways to apply modern best practices, resulting in more efficient and maintainable embedded applications.

Read on
IOS
Android
Desktop
Windows
eReader

More in Programming & Scripting Languages

C++ How To Program - Isac Torres

eBOOK

Forty-Four Esolangs : The Art of Esoteric Code - Daniel Temkin

eBOOK

The Debugging Handbook - Johannes Kuhlmann

eBOOK

RRP $69.92

$55.99

20%
OFF