Documentation Center

  • Trial Software
  • Product Updates

What Happens During the Target Building Process?

The target building process takes place as follows:

  1. The charts in your model parse to ensure that their logic is valid.

  2. If any errors are found, diagnostic error messages appear in the Build window, and the building process stops. See Parse Stateflow Charts for more details.

  3. 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.

  4. 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.

  5. The specified C compiler for the MATLAB® environment and a make utility build the code into an application for your target.

Was this topic helpful?