News for hackers. Stuff that matters.
Re:Software is eating the car by waiseristy on Thursday June 10, 2021 @03:00PM (#27464262)
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/adap...

Definitely still possible to write buggy MISRA code, but its the best we got unfortunately

Re:Software is eating the car by bri3d on Thursday June 10, 2021 @03:37PM (#27464695)
A 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.

Re:Software is eating the car by waiseristy on Thursday June 10, 2021 @03:44PM (#27464800)
You’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

Re:Software is eating the car by pjmlp on Friday June 11, 2021 @01:19AM (#27469577)
Thankfully, the problem is the adoption, as proven by Toyota's breaking system example.