Supported and Compatible Compilers – Release 2012a
A number of MathWorks products or product features require that you have a third-party compiler installed on your system. The tables below outline the compilers that are supported by various MathWorks products. These compilers are provided by a number of vendors and are available under a variety of commercial, academic, or open source terms; visit the providers' Web sites for further information.
Choose your platform:
- Windows (64-bit)
- Windows (32-bit)
- Mac OS X
- Linux
Windows (64-bit)
For the 64-bit Windows platform, a C compiler is not supplied with MATLAB. A free download is available that is suitable for most users:
The complete set of supported compilers is described below.
MATLAB Product Family – Release 2012a
| MATLAB | MATLAB Compiler |
MATLAB Builder EX |
MATLAB Builder NE |
MATLAB Builder JA |
MATLAB Coder | SimBiology | Fixed-Point Toolbox | |
|---|---|---|---|---|---|---|---|---|
| Compiler | For MEX-file compilation, loadlibrary, and external usage of MATLAB Engine and MAT-file APIs |
For C and C++ shared libraries | For all features | For all features | For all features | For all features | For accelerated computation | For accelerated computation |
| Microsoft Windows SDK 7.1 Available at no charge; requires .NET Framework 4.0 |
√ | √ | √ | √ 3 | √ | √ | √ | |
| Microsoft Visual C++ 2010 Professional | √ | √ | √ | √ 3 | √ | √ | √ | |
| Microsoft Visual C++ 2008 Professional SP1 and Windows SDK 6.1 1 | √ | √ | √ | √ 3 | √ | √ | √ | |
| Intel C++ Composer XE 2011 2 | √ | |||||||
| Intel Visual Fortran Composer XE 2011 2 | √ | |||||||
| Microsoft .NET Framework SDK 2.0, 3.0, 3.5 Available at no charge |
√ 3, 4 | |||||||
| Java Development Kit (JDK) 1.6 Available at no charge |
√ |
Simulink Product Family – Release 2012a
| Simulink | Simulink | Stateflow | Simulink Coder | Embedded Coder | xPC Target | Simulink Code Inspector | |
|---|---|---|---|---|---|---|---|
| Compiler | For S-Function compilation | For Model Referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks | For all features | For all features | When targeting the host OS | For all features | For all features |
| Microsoft Windows SDK 7.1 Available at no charge; requires .NET Framework 4.0 |
√ | √ | √ | √ | √ | √ | √ |
| Microsoft Visual C++ 2010 Professional | √ | √ | √ | √ | √ | √ | √ |
| Microsoft Visual C++ 2008 Professional SP1 and Windows SDK 6.1 1 | √ | √ | √ | √ | √ | √ | √ |
| Intel C++ Composer XE 2011 2 | √ | √ | |||||
| Intel Visual Fortran Composer XE 2011 2 | √ 5 | √ 6 |
Notes for the Windows (64-bit) Platform
- Both Microsoft Visual Studio 2008 and Windows Software Development Kit (SDK) 6.1 must be installed. When installing Microsoft Visual Studio, you must choose "X64 Compilers and Tools" when installing Microsoft Visual Studio; this is not selected by default.
- Intel compilers depend on tools provided by Microsoft. The following combinations are supported:
Microsoft
Visual Studio 2010
Professional (64-bit)Microsoft
Windows SDK 7.1Microsoft
Visual Studio 2008 SP1
Professional Edition (64-bit)Microsoft
Visual Studio 2008
Shell
(64-bit)Intel C++ Composer XE 2011 √ √ √ Intel Visual Fortran Composer XE 2011 √ √ √ √ - To build .NET components, a Microsoft .NET Framework must be installed. The .NET Framework v3.0 does not contain a framework-specific compiler; compatible components can be built using the v2.0 compiler. The .NET Framework is automatically installed by Visual Studio. It can also be downloaded from the Microsoft Web site. To execute applications that use the resulting .NET components, the target machine must have the matching .NET Framework installed.
- MATLAB Builder NE supports building .NET assemblies but not COM objects when using the Microsoft .NET Framework SDK without Microsoft Visual Studio.
- Fortran compilers are supported with Simulink only for creating Simulink S-Functions using the MATLAB MEX command. The S-Functions can be used with normal and accelerated simulations.
- xPC Target supports Fortran code in Simulink models using C-MEX wrapper S-Functions.