Stateflow User's Guide Previous page   Next Page

Setting Up Your Own Target Compiler

Building Simulink targets for Stateflow generated code requires a C compiler that MATLAB supports. The Microsoft Windows version of Stateflow comes with a C compiler (lcc.exe) and a make utility (lccmake). Both tools are installed in the directory matlabroot\sys\lcc. If you do not configure MATLAB to use any other compiler, Stateflow uses lcc to build targets.

For other compilers and for all non-Windows platforms, do the following:

  1. Install the C compiler you want Stateflow to use to build targets on your system.
  1. You can use any compiler supported by MATLAB for building MATLAB extension (MEX) files. See "Building MEX-Files" in the MATLAB External Interfaces documentation for information on C compilers supported by MATLAB.

  1. At the MATLAB prompt, type
  1. to initiate prompts for entering the appropriate information about your compiler.

    Stateflow uses the compiler that you specify to build MEX-files for building a Stateflow simulation target.


Previous page  Stateflow Installation Using Stateflow on a Laptop Computer Next page

© 1994-2005 The MathWorks, Inc.