why do embedded developers choose C lenguages over C++?
Annotations:
sdg
the availability of tools for the embedded processor.
is C++ the same than C?
Keep on mind that when Bjarne Stroustrup developed C++, he designed it to continue to be useable
as a low level programming language.
C++ has bad reputation
C++ is a big, complex and powerful language and the people that use it have the responsibility to
program in a safely and effectively way, we have to remember that C++ does not cause bad programs,
bad programming does it.
so, does C++ have something good?
In fact, C++ provides many features that may have a place in the embedded software: encapsulation,
inheritance, polymorphism, exceptions, templates and the standard library.
well, Encapsulation is really good, but, what does it offer?
Encapsulation in C++ allows the software engineer to build serl-contained objects.
Encapsulation has it’s own cost. It is not generally regarded as high, but it des hace a cost.
. Each call to a member function has a hidden additional parameter, the pointer to the encapsulated data
structure (a.k.a the ‘this’ pointer)
The conclusion
If you are really good at programming using C++, you could create better systems using this programming
language instead of C and the cost less.