A synchronous-based code generator for explicit hybrid systems languages

  • Timothy Bourke
  • , Jean Louis Colaço
  • , Bruno Pagano
  • , Cédric Pasteur
  • , Marc Pouzet

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Modeling languages for hybrid systems are cornerstones of embedded systems development in which software interacts with a physical environment. Sequential code generation from such languages is important for simulation efficiency and for producing code for embedded targets. Despite being routinely used in industrial compilers, code generation is rarely, if ever, described in full detail, much less formalized. Yet formalization is an essential step in building trustable compilers for critical embedded software development. This paper presents a novel approach for generating code from a hybrid systems modeling language. By building on top of an existing synchronous language and compiler, it reuses almost all the existing infrastructure with only a few modifications. Starting from an existing synchronous data-flow language conservatively extended with Ordinary Differential Equations (ODEs), this paper details the sequence of source-tosource transformations that ultimately yield sequential code. A generic intermediate language is introduced to represent transition functions. The versatility of this approach is exhibited by treating two classical simulation targets: code that complies with the FMI standard and code directly linked with an off-the-shelf numerical solver (Sundials CVODE). The presented material has been implemented in the Zélus compiler and the industrial Scade Suite KCG code generator of Scade 6.

Original languageEnglish
Title of host publicationCompiler Construction - 24th International Conference, CC 2015 held as part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2015, Proceedings
EditorsBjörn Franke
PublisherSpringer Verlag
Pages69-88
Number of pages20
ISBN (Electronic)9783662466629
DOIs
Publication statusPublished - 1 Jan 2015
Event24th International Conference on Compiler Construction, CC 2015 held as part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2015 - London, United Kingdom
Duration: 11 Apr 201518 Apr 2015

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume9031
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference24th International Conference on Compiler Construction, CC 2015 held as part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2015
Country/TerritoryUnited Kingdom
CityLondon
Period11/04/1518/04/15

Fingerprint

Dive into the research topics of 'A synchronous-based code generator for explicit hybrid systems languages'. Together they form a unique fingerprint.

Cite this