5 ms·
The rumor I heard at the time was that large portions of the code were autogenned out of a Matlab model of the engine, and that was where the globals and awful
by monocasa 5y ago
The rumor I heard at the time was that large portions of the code were autogenned out of a Matlab model of the engine, and that was where the globals and awful code complexity metrics came from.
- stefan_ 5y agoYep. This is widespread practice in the industry and is arguably far superior to someone actually trying to model it all in C. It just looks weird in a disassembler because you end up with a million global variables and essentially no control flow. (It's specifically Matlab Simulink for those playing along at home)
- chillingeffect 5y agoIve exported several simulink models. Long functions, yes. Globals, no.
- monocasa 5y agoI've integrated several simulink models; they had an incredible amount of globals.