Cost Of C++ Abstractions In C++ Embedded Systems - Marcell Juhasz - Cppcon 2024

https://cppcon.org
---
Cost of C++ Abstractions in C++ Embedded Systems - Marcell Juhasz - CppCon 2024
---
This session will feature detailed case studies that measure the overhead associated with common programming abstractions in the context of embedded systems. By examining both compile-time and run-time implications, attendees will gain valuable insights into how these abstractions impact system resources like memory usage and execution speed.
Key areas of exploration will include:
- Encapsulation: Assessing the cost of data hiding and interface protection depending on implementation strategies.
- Inheritance: Evaluating the costs and benefits of using class hierarchies in environments where memory and processing power are limited.
- Polymorphism: Comparing run-time polymorphism via virtual functions to compile-time alternatives like templates and concepts, analyzing their respective impacts on performance and flexibility.
Through empirical data and performance metrics, participants will observe how traditional object-oriented techniques affect resource utilization. The discussion will also cover the advantages and trade-offs of these techniques, providing a balanced view of their impact on embedded systems.
Designed for developers and system architects working within the constraints of embedded systems, this talk aims to provide valuable insights into making informed decisions about when and how to use specific programming abstractions. Attendees will leave with a clearer perspective on optimizing their code for maximum efficiency, armed with practical knowledge about the trade-offs involved in adopting various software design paradigms.
---
Slides: https://github.com/CppCon/CppCon2024/blob/main/Presentations/Balancing_Efficiency_and_Flexibility.pdf
Sponsored by JetBrains: https://www.jetbrains.com/clion/
---
Marcell Juhasz
Marcell Juhasz is an embedded software developer at Zühlke Engineering, a global innovation service provider that transforms ideas into new business models by developing cutting-edge services and products. At Zühlke, Marcell leverages his expertise in C++ and modern technologies to create advanced embedded systems. Prior to joining Zühlke, he gained valuable experience working at several smaller companies, where he developed new products and maintained existing ones using C++. Marcell recently graduated from the Vienna University of Technology with a specialization in embedded systems. His master's thesis focused on the benefits of using modern C++ in embedded systems, deepening his understanding and proficiency in the language.
---
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - https://www.cppcon.org
https://www.linkedin.com/company/cppcon
https://x.com/cppcon
https://www.facebook.com/CppConference
https://www.reddit.com/r/cppcon/
https://mastodon.social/@CppCon
---
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: https://events.digital-medium.co.uk
---
#embeddedsystem #embedded #embeddedprogramming #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #programming #programmer