Products & Services Solutions Academia Support User Community Company

Learn more about Stateflow   

Choosing a Procedure to Generate Embeddable Code for a Model

Guidelines for Embeddable Code Generation

When you generate embeddable code for a model, use these guidelines to choose the right procedure.

Do this step...When...

Optimize generated code

You want to improve readability of the code and reduce the amount of memory storage required.

See Optimizing Generated Code.

Include custom code

You want to take advantage of legacy code that augments model capabilities and also include custom variables and functions that you share between your custom code and Stateflow generated code.

Choose a custom compiler

You use the UNIX version of Stateflow software or do not wish to use the default lcc compiler.

See Choosing a Compiler.

Include custom code only for library charts

You want to provide custom code in a portable, self-contained library for use in multiple models.

Choosing the Right Procedure for Embeddable Code Generation

To choose the right procedure for embeddable code generation, find the highlighted block that describes your goal and see the corresponding section in Procedures for Embeddable Code Generation. These procedures apply to models that contain Chart or Truth Table blocks.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS