3 ms·
Advanced robotics is utterly dominated by C++.
by bitL 9y ago
Advanced robotics is utterly dominated by C++.
- fooker 9y agoAdvanced everything is utterly dominated by C++.
- AstralStorm 9y agoNot lower bit microcontroller programming which is still dominated by C. (Because C++ compilers do not exist or produce worse code.)
- fooker 9y ago>Because C++ compilers do not exist or produce worse code. I am surprised this is still true in 2018. GCC and Clang on x86 with -fno-rtti and -fno-exceptions produce almost identical code for similar programs in C and C++. If what you say is true, I suppose there aren't enough compiler devs paid to optimize C++ for those platforms.
- AstralStorm 9y agoExactly the point. Keil doesn't care and gcc devs on smaller platforms are almost always volunteers. Clang/LLVM is not even close to supporting something lower bit.
- pjmlp 9y agoGCC and Clang are not even a thing in most microcontrollers. You buy the compiler from the same vendor that is selling you the hardware. Even if it is based on gcc, it happens to be a fork with changes they don't easily release. Some of them are now transitioning to clang, because the license makes it easier to keep doing so. Many of them are still mostly C89 (not 100% ANSI C compliant due to hardware limitations) with a few C99 features.