Replies: 3 comments 1 reply
-
Fully agree. As far as I saw there are currently works being done to implement C++ minimal library in the Zephyr SDK. |
Beta Was this translation helpful? Give feedback.
-
I am using subset of C++ for embedded development for more than 15 years, before C++11 was even a thing. I have different point of view: C++ allowed me to write better (cleaner, readable, maintainable) code, Limited C++ is better than C. Period. Limited C++, not full C++. |
Beta Was this translation helpful? Give feedback.
-
https://en.wikipedia.org/wiki/Embedded_C%2B%2B Embedded C++ excludes some features of C++.... I would be fine with just EC++, but got used to templates (and "multiple-inheritance" used for interfaces). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have seen the folllowing in the docs
I agree that the static order initialization fiasco is an issue. However, there are are a lot of benefits that the C++ language also has without the need to use classes and dynamic memory allocation. Are there any reasons as to why only the C language is accepted for this project?
My goal with this post is not to compare/discuss why C is superior to C++ or viceversa but to get a current view of why only C is accepted for the Zephyr OS project. Is it because of portability, scalability, toolchain compatibility, ..etc ?
Oh and dont get me wrong C is a good language but as an Embedded dev. C++ makes life less complicated at compile-time and can achieve similar or same results as C code. See https://www.youtube.com/watch?v=zBkNBP00wJE
Beta Was this translation helpful? Give feedback.
All reactions