| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
The target building process takes place as follows:
The charts in your model parse to ensure that their logic is valid.
If any errors are found, diagnostic error messages appear in the Build window, and the building process stops. See Parsing Stateflow Charts for more details.
If your charts parse without error, code generation software generates C code from your charts.
You can specify code generation options when you configure your targets.
Code generation software produces a makefile to build the generated source code into an executable program.
The makefile can optionally build your custom code into the target.
The specified C compiler for the MATLAB environment and a make utility build the code into an application for your target.
![]() | How to Build a Stateflow Custom Target | Parsing Stateflow Charts | ![]() |

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 |