| General > General Technical Chat |
| How many people code in C these days, and if so, why? |
| << < (73/99) > >> |
| chriva:
Car manufacturers are usually using C++ if that answers your question. Depending on system obv. I refer to the stuff doing the low level crap. No idea about cameras and infotainment systems |
| coppice:
--- Quote from: chriva on May 13, 2020, 11:50:55 am ---Car manufacturers are usually using C++ if that answers your question. Depending on system obv. I refer to the stuff doing the low level crap. No idea about cameras and infotainment systems --- End quote --- They may be using C++ for the big processors in the infotainment system, but they aren't using it for the 100 or so MCUs spread around the car. MISRA C is the norm there. |
| engrguy42:
--- Quote from: chriva on May 13, 2020, 11:50:55 am ---Car manufacturers are usually using C++ if that answers your question. Depending on system obv. I refer to the stuff doing the low level crap. No idea about cameras and infotainment systems --- End quote --- Thanks, but you're not answering the question I asked. |
| coppice:
--- Quote from: engrguy42 on May 13, 2020, 11:35:19 am ---Okay, so let's get honest here... :D I hear a lot of talk of C and embedded systems. And I originally assumed that you guys were working in some large companies that designed microcontroller systems for, say, automobiles or other real world stuff. But I'm starting to think that this strong bias in favor of C and embedded systems is actually a bunch of hobbyists working on Arduinos, who really have no experience in developing software in other languages for real world stuff? Just asking... Because it's hard to understand a "holier than thou", "drunk uncle" nonsensical bias against any tool that helps you to quickly get stuff done. I mean, it the real world, it's all about the best tool to get your problem solved as quickly and efficiently as possible. --- End quote --- Arduino isn't a C environment. Its a sort of twisted C++. Try looking at the tools available for MCUs. You'll always find a usable C compiler, and, of course, there will be an assembler. You may find a C++ compiler, because its using the same back end as its accompanying C compiler, so it comes for free. However, if you try it you'll find its useless for anything but the largest memory MCUs. You are unlikely to find compilers for any other languages. That should tell you what professional developers use for MCUs. For larger embedded devices the languages are more diverse, but in the MCU world its assembly language, C, or something really niche. |
| chriva:
--- Quote from: coppice on May 13, 2020, 11:53:42 am --- --- Quote from: chriva on May 13, 2020, 11:50:55 am ---Car manufacturers are usually using C++ if that answers your question. Depending on system obv. I refer to the stuff doing the low level crap. No idea about cameras and infotainment systems --- End quote --- They may be using C++ for the big processors in the infotainment system, but they aren't using it for the 100 or so MCUs spread around the car. MISRA C is the norm there. --- End quote --- I was thinking PCM/ECU or other stuff that is safety related. And yes, lots of certifications and other shenanigans going on. Aaand yes. C / C++ for those. Don't think there are any other languages that have these certifications. Almost getting silly these days, you have processors watching over other processors to make sure things are not getting out of hand. It started with throttle body processors around 98 and has gotten progressively more overkill. |
| Navigation |
| Message Index |
| Next page |
| Previous page |