3 ms·
Well, sort of. It's all written in MISRA C and a very special version of the C++14 standard https://www.autosar.org/fileadmin/user_upload/standards/adaptive/1
by waiseristy 5y ago
Well, sort of. It's all written in MISRA C and a very special version of the C++14 standard
https://www.autosar.org/fileadmin/user_upload/standards/adaptive/17-03/AUTOSAR_RS_CPP14Guidelines.pdf https://www.autosar.org/fileadmin/user_upload/standards/adap...
Definitely still possible to write buggy MISRA code, but its the best we got unfortunately
- bri3d 5y agoA lot of modern ECUs are "written" in modeling tools like Simulink and then compiled into auto-genned MISRA C which is never touched by humans, as well. I'm certainly not trying to say automotive code is in a good place, but it's not the same as a 1+ million line hand-written C project like some people think when they see the numbers.
- waiseristy 5y agoYou’re right, but that code the generator pulls is all hand written by some poor shmucks at elektrobit or vector. And personal experience, OEMs just love to make little tweaks to the auto generated code as well. Which is a massive pain in the ass
- pjmlp 5y agoThankfully, the problem is the adoption, as proven by Toyota's breaking system example.