Model-Driven Code Generation and Analysis

Paper #:
  • 2014-01-0217

Published:
  • 2014-04-01
Citation:
Kaestner, D., Rustemeier, C., Kiffmeier, U., Fleischer, D. et al., "Model-Driven Code Generation and Analysis," SAE Technical Paper 2014-01-0217, 2014, https://doi.org/10.4271/2014-01-0217.
Pages:
10
Abstract:
Model-based development is the established way of developing embedded control algorithms, especially for safety-critical applications. The aim is to improve development efficiency and safety by developing the software at a high abstraction level (the model) and by generating the implementation (the C code) automatically from the model. Although model-based development focuses on the models themselves, downstream artifacts such as source code or executable object code have to be considered in the verification stage.Safety standards such as ISO 26262 require upper bounds to be determined for the required storage space or the execution time of real-time tasks, and the absence of run-time errors to be demonstrated. Static analysis tools are available which work at the code level and can prove the absence of such errors. However, the connection to the model level has to be explicitly established. In this article we present an approach to integrate static code analyzers with model-based development tools. The static analysis can be invoked automatically from the modeling tool with relevant model-level information automatically being propagated to the analyzer to optimize analysis precision. The results are mapped back to the modeling level. This way, timing bugs, stack overflows, and run-time errors can be detected early in the development process. Implementation-level errors can be traced back to the modeling level, and can be investigated at both the model and the implementation level. This significantly reduces the development effort and allows bugs to be detected early in the development process.
Access
Now
SAE MOBILUS Subscriber? You may already have access.
Buy
Select
Price
List
Download
$28.00
Mail
$28.00
Members save up to 42% off list price.
Share
HTML for Linking to Page
Page URL

Related Items

Standard
2015-06-04
Technical Paper / Journal Article
1990-02-01
Standard
2001-04-26
Training / Education
2018-03-26
Training / Education
2016-04-30
Training / Education
2016-03-07
Technical Paper / Journal Article
1989-12-01
Article
2017-07-26
Technical Paper / Journal Article
1990-10-01
Training / Education
2018-04-30