Technical Articles

Techniques for Generating and Measuring Production Code Constructs from Controller Models

By Bill Chou and Saurabh Mahapatra, MathWorks


A key step in Model-Based Design is the deployment of an algorithm onto a target processor in the production vehicle as machine code. Modern software tools generate the algorithmic source code from models. Given the many combinatorial possibilities for realizing an algorithm within the modeling environment, the generated C source code will be a function of a realization. This dependency is important to consider because the quality and clarity of the source code impacts the amount of verification and analysis that must be done for production software development. Other factors involved in generating the machine code from the source code, such as compiler optimization and microprocessor architecture, also contribute to this optimization. Organizations that proactively data mine and gather these optimizations into a set of best practices benefit from reduced development times and lower costs.

This paper introduces techniques that can be used to generate and measure code constructs for creating a set of best practices for the Simulink® modeling environment. The quality of the object code is measured by examining the algorithm compiled within an integrated development environment.

Copyright © 2009 The MathWorks, Inc. Published by SAE International with permission.

 This paper was presented at SAE World Congress. 

Read full paper.

Published 2009

View Articles for Related Capabilities

View Articles for Related Industries