Answer the question
In order to leave comments, you need to log in
What is the choice between C and C++ for writing drivers?
Hello everyone
I would like to clarify what the decision is based on when choosing a language for writing a driver for a piece of iron (C or C ++)?
Answer the question
In order to leave comments, you need to log in
C++ can't hurt. If you use virtual, RTTI, exceptions, iostreams, then you pay for them, but if this price is unacceptable, just don't use them.
However, C++, especially C++11 and C++14, are often not supported by the compiler when you have to build not for cozy gcc / clang x86, but for something specific, like Arduino or CUDA. Even in the Linux kernel, C++ is traditionally banned.
So see if you can use C++ in your particular case. If not, then there is nothing to choose from.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question