Code Generation

  • Stephen L. Campbell
  • Jean-Philippe Chancelier
  • Ramine Nikoukhah
Chapter

Abstract

Scicos provides a code-generation facility that can be used to create C code for a model defined in Scicos. Code generation has many applications. It can be used to improve simulation performance. Even though Scicos diagrams are compiled in the sense that all the scheduling tables are precomputed, there is still some overhead in using the Scicos simulator that is eliminated by running the code that has been generated. Even if the performance gain is not significant, replacing a Super block with a basic block may be of interest if the designer of the model does not want to reveal the content of the Super block. If the Super block is converted to a basic block, the designer can then simply distribute a compiled version of the generated code. But the most important application of code generation is the creation of standalone applications (programs that run independently of Scilab), which can be used, in particular, in real-time applications. applications.

Keywords

Encapsulation 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer Science+Business Media, LLC 2010

Authors and Affiliations

  • Stephen L. Campbell
    • 1
  • Jean-Philippe Chancelier
    • 2
  • Ramine Nikoukhah
    • 3
  1. 1.Department of MathematicsNorth Carolina State UniversityRaleighUSA
  2. 2.Ecole Nationale des Ponts et ChausséesCentre d’Enseignement et de Recherche en Mathéematiques et Calcul ScientifiqueMarne-la-ValleeFrance
  3. 3.INRIALe Chesnay CedexFrance

Personalised recommendations