This content is not included in your SAE MOBILUS subscription, or you are not logged in.

Techniques for Generating and Measuring Production Code Constructs from Controller Models

Journal Article
2009-01-0149
ISSN: 1946-4614, e-ISSN: 1946-4622
Published April 20, 2009 by SAE International in United States
Techniques for Generating and Measuring Production Code Constructs from Controller Models
Sector:
Citation: Chou, B. and Mahapatra, S., "Techniques for Generating and Measuring Production Code Constructs from Controller Models," SAE Int. J. Passeng. Cars – Electron. Electr. Syst. 2(1):27-33, 2009, https://doi.org/10.4271/2009-01-0149.
Language: English

Abstract:

A key step in Model-Based Design is the deployment of an algorithm as machine code onto a target processor in the production vehicle. Modern software tools automatically generate the algorithmic source code from models. Given the many combinatorial possibilities for realizing a given algorithm within the modeling environment, the generated C source code will be a function of a realization. This dependency is an important consideration 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 stand to benefit from reduced development times and lower costs. This paper introduces techniques that can be used to generate and measure code constructs used to create 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.