Go beyond C by applying modern C++ in embedded systems to enhance code readability, maintainability, and scalability
Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*
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 how to harness zero-cost abstractions, compile-time checks, and 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 expect while unlocking safety and expressiveness of modern C++.
Starting with a modern development environment setup, including a Docker container for seamless example replication, you’ll overcome challenges of using the C++ standard library in memory-constrained settings and explore the Embedded Template Library (ETL) as an alternative. The book walks 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 embedded problems.
By the end, you’ll be able to apply modern C++ to develop robust, modular firmware with performance matching or exceeding hand-coded C solutions.
*Email sign-up and proof of purchase required
This book is for embedded developers who primarily use C and want to adopt a modern C++ approach. It introduces fundamental C++ concepts, making it suitable for beginners, while also assuming basic familiarity to fully leverage advanced features like compile-time computation. Even those with prior C++ experience will discover new ways to apply modern best practices to write more efficient and maintainable embedded applications.
(N.B. Please use the Read Sample option to see further chapters)
Les informations fournies dans la section « Synopsis » peuvent faire référence à une autre édition de ce titre.
Amar Mahmutbegović is the co-founder and head of engineering at Semblie, where he leads the utilization of modern C++ for firmware development. His expertise extends to working on BLE consumer devices and medical devices, delivering sophisticated solutions for a wide range of clients, including start-ups. Amar's dedication to innovation helps bring electronic product ideas to the world. Amar actively shares C++ benefits in the embedded community via blogs and LinkedIn. He also mentors young engineers, enhancing their skills in modern development practices. His work aims to make embedded systems more accessible, maintainable, and scalable, bridging the gap between traditional methods and modern efficiencies for developers worldwide.
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, 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. What You Will Learn: - Debunk myths and misconceptions about using C++ in embedded systems - Set up build automation tailored for C++ in constrained environments - Leverage strong typing to improve type safety - Apply modern C++ techniques, such as Resource Acquisition Is Initialization (RAII) - Use Domain Specific Language (DSL) with a practical example using Boost SML - Implement software development best practices, including the SOLID principle, in embedded development Who this book is for: This book is for embedded developers who primarily use C and want to adopt a modern C++ approach. It introduces fundamental C++ concepts, making it suitable for beginners, while also assuming basic familiarity to fully leverage advanced features like compile-time computation. Even those with prior C++ experience will discover new ways to apply modern best practices to write more efficient and maintainable embedded applications. Table of Contents - Debunking Common Myths about C++ - Challenges in Embedded Systems with Limited Resources - Embedded C++ Ecosystem - Setting Up the Development Environment for a C++ Embedded Project - Classes - Building Blocks of C++ Applications - Beyond Classes - Fundamental C++ Concepts - Strengthening Firmware - Practical C++ Error Handling Methods - Building Generic and Reusable Code with Templates - Improving Type-Safety with Strong Types - Writing Expressive Code with Lambdas - Compile-Time Computation - Writing C++ HAL - Working with C Libraries - Enhancing Super-Loop with Sequencer - Practical Patterns - Building a Temperature Publisher - Designing Scalable Finite State Machines - Libraries and Frameworks - Cross-Platform Development
Les informations fournies dans la section « A propos du livre » peuvent faire référence à une autre édition de ce titre.
Vendeur : GreatBookPrices, Columbia, MD, Etats-Unis
Etat : New. N° de réf. du vendeur 50399140-n
Quantité disponible : Plus de 20 disponibles
Vendeur : BargainBookStores, Grand Rapids, MI, Etats-Unis
Paperback or Softback. Etat : New. C++ in Embedded Systems: A practical transition from C to modern C++. Book. N° de réf. du vendeur BBS-9781835881149
Quantité disponible : 5 disponible(s)
Vendeur : GreatBookPrices, Columbia, MD, Etats-Unis
Etat : As New. Unread book in perfect condition. N° de réf. du vendeur 50399140
Quantité disponible : Plus de 20 disponibles
Vendeur : California Books, Miami, FL, Etats-Unis
Etat : New. N° de réf. du vendeur I-9781835881149
Quantité disponible : Plus de 20 disponibles
Vendeur : PBShop.store US, Wood Dale, IL, Etats-Unis
PAP. Etat : New. New Book. Shipped from UK. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. N° de réf. du vendeur L0-9781835881149
Quantité disponible : Plus de 20 disponibles
Vendeur : Rarewaves USA, HEBRON, KY, Etats-Unis
Paperback. Etat : New. C++ in Embedded Systems demystifies C++ for embedded development, and guides you beyond outdated misconceptions to modern practices that will improve your embedded software designs. N° de réf. du vendeur LU-9781835881149
Quantité disponible : Plus de 20 disponibles
Vendeur : PBShop.store UK, Fairford, GLOS, Royaume-Uni
PAP. Etat : New. New Book. Delivered from our UK warehouse in 4 to 14 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. N° de réf. du vendeur L0-9781835881149
Quantité disponible : Plus de 20 disponibles
Vendeur : Rarewaves.com USA, London, LONDO, Royaume-Uni
Paperback. Etat : New. C++ in Embedded Systems demystifies C++ for embedded development, and guides you beyond outdated misconceptions to modern practices that will improve your embedded software designs. N° de réf. du vendeur LU-9781835881149
Quantité disponible : Plus de 20 disponibles
Vendeur : GreatBookPricesUK, Woodford Green, Royaume-Uni
Etat : New. N° de réf. du vendeur 50399140-n
Quantité disponible : Plus de 20 disponibles
Vendeur : GreatBookPricesUK, Woodford Green, Royaume-Uni
Etat : As New. Unread book in perfect condition. N° de réf. du vendeur 50399140
Quantité disponible : Plus de 20 disponibles