Деталі електронної книги

C++ in Embedded Systems. A practical transition from C to modern C++

C++ in Embedded Systems. A practical transition from C to modern C++

Amar Mahmutbegović, Steve Branam

Eлектронна книга
Transitioning from C can be daunting, with concerns about performance overhead, added complexity, and unfamiliar tooling. Addressing these challenges, Amar Mahmutbegovic, an advocate for modern C++ in embedded development, shows you how to harness zero-cost abstractions, compile-time checks, and powerful modern C++ capabilities to preserve performance while achieving safer, cleaner code. This book bridges the gap between traditional C and advanced C++, helping you retain the efficiency C developers demand while unlocking the safety and expressiveness of modern C++. Starting with a modern development environment setup, including a Docker container for seamless example replication, you’ll overcome the hurdles of using the C++ standard library in memory-constrained settings and get acquainted with the Embedded Template Library (ETL) as an alternative. The book walks you through essential C++ concepts before exploring advanced topics such as templates, strong typing, error handling, compile-time computation, and RAII. Through practical examples, you'll 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.
  • 1. Debunking Common Myths about C++
  • 2. Challenges in Embedded Systems with Limited Resources
  • 3. Embedded C++ Ecosystem
  • 4. Setting Up the Development Environment for a C++ Embedded Project
  • 5. Classes – Building Blocks of C++ Applications
  • 6. Beyond Classes – Fundamental C++ Concepts
  • 7. Strengthening Firmware – Practical C++ Error Handling Methods
  • 8. Building Generic and Reusable Code with Templates
  • 9. Improving Type-Safety with Strong Types
  • 10. Writing Expressive Code with Lambdas
  • 11. Compile-Time Computation
  • 12. Writing C++ HAL
  • 13. Working with C Libraries
  • 14. Enhancing Super-Loop with Sequencer
  • 15. Practical Patterns – Building a Temperature Publisher
  • 16. Designing Scalable Finite State Machines
  • 17. Libraries and Frameworks
  • 18. Cross-Platform Development
  • Назва: C++ in Embedded Systems. A practical transition from C to modern C++
  • Автор: Amar Mahmutbegović, Steve Branam
  • Оригінальна назва: C++ in Embedded Systems. A practical transition from C to modern C++
  • ISBN: 9781835881156, 9781835881156
  • Дата видання: 2025-07-02
  • Формат: Eлектронна книга
  • Ідентифікатор видання: e_4d6k
  • Видавець: Packt Publishing