3 ms·
Write it in safe, modern C++, with an extern C API. I'm sure that leaves out a few rare cases on embedded platforms where they only have a C compiler, but they
by TillE 13y ago
Write it in safe, modern C++, with an extern C API.
I'm sure that leaves out a few rare cases on embedded platforms where they only have a C compiler, but they could continue using existing libraries.
- mixedbit 13y agoI can't see why C++ would be any safer than C. For example Heartbleed like bugs in C++ are still very much possible.
- amalcon 13y agoIt's possible to define a subset of C++ that can be statically verified to not have this sort of problem. This can also be done with C, but it's more difficult. There are actually people who write in overrun-proof subsets of C++.
- christopherl 13y agoWow, I wish posts like yours weren't so rare. There is way too much undeserved hate heaped on C++ due to (imo) C programmers that pretend to code C++.