A discussion about code generation
Closing the Loop on Systems Development
Using models, engineering teams can develop extremely complex algorithms rapidly with the confidence that the result will achieve design goals. However, Simulink® models by themselves are not useful in actual embedded applications. Automatic code generation allows Simulink® algorithms to be transformed into equivalent C code for deployment in an embedded application. This approach is convenient and because it is automatic, it is rapid and less error prone then hand-written code.
However, out-of-the-box, embedded coding solutions are difficult to use for anything except trivial applications. When it comes to their application in an industrial setting, substantial effort is required to configure the tools:
- Proper C structure to allow for integration with existing code bases
- Achieving efficient code that will run quickly on inexpensive processors
- Adhering to corporate style conventions
- Managing fixed-point and floating point calculations
Besides this, companies can find it challenging to develop appropriate workflows and processes with these new tools while leveraging existing know-how.
We have developed substantial experience working with our customers to achieve code quality with a number of different code generation tools (e.g. Embedded Coder®, TargetLink®). Together with our Legacy to Model Conversion service, Emmeskay provides a complete pathway for customers to migrate to MBSD.