S
S
Sergey Nizhny Novgorod2017-10-23 12:43:47
C++ / C#
Sergey Nizhny Novgorod, 2017-10-23 12:43:47

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

1 answer(s)
A
Anton Zhilin, 2017-10-23
@Terras

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 question

Ask a Question

731 491 924 answers to any question