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.
Unable to display preview. Download preview PDF.