Stateflow | ![]() ![]() |
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
:
You can use any compiler supported by MATLAB for building MATLAB extension (MEX) files. See the "External Interfaces/API Reference" section of the online MATLAB documentation for more information for information on C compilers supported by MATLAB.
See "Building MEX Files" in the "External Interfaces" section of the "Using MATLAB" section of the online documentation. 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 box (see Simulation Coder Options Dialog Box) for each target that you want to be built with lcc
.
![]() | Setting Up Build Tools on UNIX | Starting a Build | ![]() |