News for hackers. Stuff that matters.
Re:C++ State Machines by DoingIsLearning on Wednesday April 03, 2019 @02:32AM (#19561244)
I've just started working in a safety critical field where Simulink model driven design is heavily used.

My previous first impression was that auto generated code was not very efficent and could easily create mangled unreadiable code. I assume this would be OK for prototyping something quickly but not for production grade applications.

From your understanding is Simulink + code generation a fairly common toolchain in industry? I would imagine that MathWorks would have to go through some serious certification exercise specially for code generation?

Re:C++ State Machines by Yoofie on Wednesday April 03, 2019 @08:06AM (#19562635)
Matlab/Simulink models are also heavily used in automotive ECUs. I'm not sure about space coding standards, but the code generated from Simulink can be, if selected, MISRA compliant and optimized for speed, accuracy, etc.