Skip to Main Content Skip to Search
Product Documentation

Choosing a Compiler

You must use a C or C++ compiler for compiling code that you generate. The Windows version of Stateflow software ships with a C compiler (lcc.exe) and a make utility (lccmake). Both tools reside in the folder matlabroot\sys\lcc. If you do not install any other compiler, lcc is the default compiler that builds your targets.

If you use the UNIX version of Stateflow software or do not wish to use the default lcc compiler, you must install your own target compiler. You can use any compiler supported by MATLAB software.

To install your own target compiler:

  1. At the MATLAB prompt, type:

    mex -setup
  2. Follow the prompts for entering information about your compiler.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS