Supported and Compatible Compilers – Release 2011a
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 (32-bit)
- Windows (64-bit)
- Linux
- Mac OS X
Windows (64-bit)
For the 64-bit Windows platform, a C compiler is not supplied with MATLAB. Free downloads are available that are suitable for most users. To get a C compiler and support libraries, install the following downloads in order:
For step-by-step installation instructions, see Solution 1-ECUGQX.
MATLAB Product Family – Release 2011a
| MATLAB | MATLAB Compiler |
MATLAB Builder EX |
MATLAB Builder NE |
MATLAB Builder JA |
MATLAB Coder | SimBiology | Fixed-Point Toolbox | ||
|---|---|---|---|---|---|---|---|---|---|
| Compiler | Version | 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 Visual C++ 2010 Express and Windows SDK 7.1 1 Available at no charge |
10.0 | √ | √ | √ | √ 4 | √ | √ | √ | |
| Microsoft Visual C++ 2010 Professional | 10.0 | √ | √ | √ | √ 4 | √ | √ | √ | |
| Microsoft Visual C++ 2008 Professional SP1 and Windows SDK 6.1 2 3 | 9.0 | √ | √ | √ | √ 4 | √ | √ | √ | |
| Microsoft Visual C++ 2005 Professional SP1 3 | 8.0 6 | √ | √ | √ | √ 4 | √ | √ | √ | |
| Intel C++ 5 | 11.1 | √ | |||||||
| Intel Visual Fortran 5 | 11.1 | √ | |||||||
| Microsoft .NET Framework SDK Available at no charge |
3.5 | √ 4, 7 | |||||||
| 3.0 | √ 4, 7 | ||||||||
| 2.0 | √ 4, 7 | ||||||||
| Java Development Kit (JDK) Available at no charge |
1.6 | √ |
Simulink Product Family – Release 2011a
| Simulink | Simulink | Stateflow | Simulink Coder | Embedded Coder | xPC Target | ||
|---|---|---|---|---|---|---|---|
| Compiler | Version | 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 |
| Microsoft Visual C++ 2010 Express and Windows SDK 7.1 1 Available at no charge |
10.0 | √ | √ | √ | √ | √ | √ |
| Microsoft Visual C++ 2010 Professional | 10.0 | √ | √ | √ | √ | √ | √ |
| Microsoft Visual C++ 2008 Professional SP1 and Windows SDK 6.1 2 3 | 9.0 | √ | √ | √ | √ | √ | √ |
| Microsoft Visual C++ 2005 Professional SP1 3 | 8.0 6 | √ | √ | √ | √ | √ | √ |
| Intel C++ 5 | 11.1 | √ | |||||
| Intel Visual Fortran 5 | 11.1 | √ 8 | √ 9 |
Notes for the Windows (64-bit) Platform
- Both Microsoft Visual C++ 2010 Express and Windows Software Development Kit (SDK) 7.1 must be installed.
- Microsoft Visual Studio 2008 Professional Edition requires that the Microsoft Windows Software Development Kit (SDK) 6.1 is installed properly.
- To use Microsoft Visual Studio with MATLAB on a 64-bit platform, you must choose "X64 Compilers and Tools" when installing Microsoft Visual Studio. This is not selected by default.
- 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.
- Intel compilers depend on tools provided by Microsoft development
products. The following combinations are supported by MATLAB and Simulink
related products:
Access to the 2008 SP1 edition is available from Microsoft as part of their Visual Studio with MSDN subscriptions. You should use the Microsoft Visual Studio 2008 Shell that is bundled with certain Intel Visual Fortran packages.Intel Compilers
on Microsoft WindowsMicrosoft
Visual Studio 2008 SP1
Professional Edition
(64-bit)Microsoft
Visual Studio 2008
Shell
(64-bit)Compiler Version 9.0 9.0 Intel C++ 11.1 √ Intel Visual Fortran 11.1 √ √ - Support for this version of this compiler will be discontinued in a future release, at which time a new version will be supported. Consult the platform road map for more information.
- 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.