Using Stateflow     Search    Help Desk 

Setting Up Build Tools on Windows

The Microsoft Windows version of Stateflow comes with a C compiler (lcc.exe) and make utility (lccmake). Both tools are installed in the directory matlabroot\sys\lcc. If you have not configured MATLAB to use any other compiler, Stateflow uses lcc to build targets. Thus, you do not have to perform any tool setup to build targets with the Windows version of Stateflow. If you want to use a compiler other than lcc, however, you must do some initial setup.

To use a compiler other than lcc:

   1.
Install the compiler on your system.
You can use any compiler supported by MATLAB for building MATLAB extension (MEX) files. See the MATLAB Application Program Interface Guide for information on C compilers supported by MATLAB. To access the online version of this guide, choose Help Desk from the MATLAB Help window.
   2.
Set up MATLAB to build MEX files, using the compiler installed in step 1.
See "System Setup" in the MATLAB Application Program Interface Guide for information on setting up MATLAB to build MEX files. Stateflow uses the compiler that you specify to build MEX files to build Stateflow targets.
If you want to use a compiler that you supply to build some targets and lcc to build other targets, first set up MATLAB to use the compiler you supply. Then, check the Use lcc compiler option on the Coder dialog (see "Coder Options") for each target that you want to be built with lcc.



[ Previous | Help Desk | Next ]