Stateflow | ![]() ![]() |
Setting Up the Target Compiler
Building Simulink targets requires a C compiler that is supported by MATLAB. 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:
Note Stateflow supports building targets with Microsoft Visual C/C++ 5.0 only if you have installed the Service Pack 3 updates for that product. |
mex -setup
to initiate prompts for entering the appropriate information about your compiler.
On Windows platforms, 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 select the Use lcc compiler option on the Coder dialog box (see Simulation Target (sfun) Coder Options) for each target that you want to build with lcc
.
![]() | How Stateflow Builds Targets | Configuring a Target | ![]() |