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' websites for further information.
Please see Polyspace documentation for the list of compilers that Polyspace supports in the current release.
Note:
| Compiler | MATLAB | MATLAB Compiler | MATLAB Compiler SDK | MATLAB Coder | SimBiology | Fixed-Point Designer | HDL Coder | HDL Verifier | Audio System Toolbox |
|||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| For MEX-file compilation, loadlibrary, and external usage of MATLAB Engine and MAT-file APIs | Excel add-in for desktop | C/C++ & COM | .NET | Java | Excel add-in for MPS | For all features | For accelerated computation | For accelerated computation | For accelerated testbench simulation | For DPI and TLM component generation | For validating and generating audio plugins |
|
| MinGW 4.9.2 C/C++ (Distributor: TDM-GCC) Available at no charge | 6 | |||||||||||
| Microsoft Visual C++ 2015 Professional | 4 | 1 | ||||||||||
| Microsoft Visual C++ 2013 Professional | 4 | 1 | ||||||||||
| Microsoft Visual C++ 2012 Professional | 4 | |||||||||||
| Microsoft Windows SDK 7.1 2 Available at no charge; requires .NET Framework 4.0 | 6 | |||||||||||
| Intel Parallel Studio XE 2017 for C/C++ 3 | |
|||||||||||
| Intel Parallel Studio XE 2016 for C/C++ 3 | ||||||||||||
| Intel Parallel Studio XE 2015 for C/C++ 3 | ||||||||||||
| Intel C++ Composer XE 2013 3 | ||||||||||||
| Intel Parallel Studio XE 2017 for Fortran 3 | |
|||||||||||
| Intel Parallel Studio XE 2016 for Fortran 3 | ||||||||||||
| Intel Parallel Studio XE 2015 for Fortran 3 | ||||||||||||
| Intel Visual Fortran Composer XE 2013 3 | ||||||||||||
| Microsoft .NET Framework SDK 4.0, 4.5, 4.6 Available at no charge |
4, 5 | 10 | ||||||||||
| Java Development Kit (JDK) 1.7 Available at no charge |
||||||||||||
| lcc-win64 Included with products that support it |
6 | |||||||||||
| Compiler | Simulink | Simulink | Stateflow | Simulink Coder | Embedded Coder | Simulink Real-Time |
|---|---|---|---|---|---|---|
| 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 | |
| MinGW 4.9.2 C/C++ (Distributor: TDM-GCC) Available at no charge | ||||||
| Microsoft Visual C++ 2015 Professional | 1 | |||||
| Microsoft Visual C++ 2013 Professional | 1 | |||||
| Microsoft Visual C++ 2012 Professional | ||||||
| Microsoft Windows SDK 7.1 2 Available at no charge; requires .NET Framework 4.0 | 7 | 7 | ||||
| Intel Parallel Studio XE 2017 for C/C++ 3 | |
|||||
| Intel Parallel Studio XE 2016 for C/C++ 3 | ||||||
| Intel Parallel Studio XE 2015 for C/C++ 3 | ||||||
| Intel C++ Composer XE 2013 3 | ||||||
| Intel Parallel Studio XE 2017 for Fortran 3 | ||||||
| Intel Parallel Studio XE 2016 for Fortran 3 | 8 | |||||
| Intel Parallel Studio XE 2015 for Fortran 3 | 8 | |||||
| Intel Visual Fortran Composer XE 2013 3 | 8 | 9 | ||||
| lcc-win64 Included with products that support it |
| Microsoft Windows SDK 7.1 | Microsoft Visual Studio 2015 Professional (64-bit) | Microsoft Visual Studio 2013 Professional (64-bit) | Microsoft Visual Studio 2012 Professional (64-bit) | |
|---|---|---|---|---|
| Intel Parallel Studio XE 2017 For C/C++ |
||||
| Intel Parallel Studio XE 2016 For C/C++ | ||||
| Intel Parallel Studio XE 2015 For C/C++ | ||||
| Intel Parallel Studio XE 2017 For Fortran |
||||
| Intel Parallel Studio XE 2016 For Fortran | ||||
| Intel Parallel Studio XE 2015 For Fortran | ||||
| Intel C++ Composer XE 2013 | ||||
| Intel Visual Fortran Composer XE 2013 |
Note:
On the Mac, no C compiler is supplied with MATLAB. If you use products that require one, Apple's development environment for macOS (Xcode) is available in the Mac App Store.
| Compiler | MATLAB | MATLAB Compiler SDK | MATLAB Coder | SimBiology | Fixed-Point Designer | Audio System Toolbox |
|
|---|---|---|---|---|---|---|---|
| For MEX-file compilation, loadlibrary, and external usage of MATLAB Engine and MAT-file APIs | C/C++ | Java | For all features | For accelerated computation | For accelerated computation | For validating and generating audio plugins |
|
| Xcode 8.x Available at no charge |
1 | ||||||
| Xcode 7.x Available at no charge | 1 | ||||||
| Intel Parallel Studio XE 2017 for Fortran |
|||||||
| Intel Parallel Studio XE 2016 for Fortran | |||||||
| Intel Parallel Studio XE 2015 for Fortran | |||||||
| Intel Fortran Composer XE (2013) | |||||||
| Java Development Kit (JDK) 1.7 Available at no charge |
|||||||
| Compiler | Simulink | Simulink | Stateflow | Simulink Coder | Embedded Coder |
|---|---|---|---|---|---|
| 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 | |
| Xcode 8.x Available at no charge |
|||||
| Xcode 7.x Available at no charge | |||||
| Intel Parallel Studio XE 2017 for Fortran |
2 | ||||
| Intel Parallel Studio XE 2016 for Fortran | 2 | ||||
| Intel Parallel Studio XE 2015 for Fortran | 2 | ||||
| Intel Fortran Composer XE (2013) | 2 |
To determine the version of Xcode installed, start Xcode and then select Xcode->About Xcode.
Note:
On Linux, no C compiler is supplied with MATLAB. The GNU compiler (GCC) is included with many Linux distributions.
| Compiler | MATLAB | MATLAB Compiler SDK | MATLAB Coder | SimBiology | Fixed-Point Designer | HDL Coder | HDL Verifier | |
|---|---|---|---|---|---|---|---|---|
| For MEX-file compilation, loadlibrary, and external usage of MATLAB Engine and MAT-file APIs | C/C++ | Java | For all features | For accelerated computation | For accelerated computation | For accelerated testbench simulation | For DPI and TLM component generation | |
| GCC C/C++ 4.9.x Available at no charge |
||||||||
| GNU gfortran 4.9.x Available at no charge |
||||||||
| Java Development Kit (JDK) 1.7 Available at no charge |
||||||||
| Compiler | Simulink | Simulink | Stateflow | Simulink Coder | Embedded Coder |
|---|---|---|---|---|---|
| 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 | |
| GCC C/C++ 4.9.x Available at no charge |
|||||
| GNU gfortran 4.9.x Available at no charge |
1 |
To determine the version of your compiler, see Answer 99897.