Supported and Compatible Compilers – Release 2010a
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:
Mac OS X
On the Mac, no C compiler is supplied with MATLAB. If you use products that require one, Apple's development environment for OS X (Xcode) is available from Apple at no cost.
MATLAB Product Family – Release 2010a
| MATLAB | MATLAB1 | MATLAB Compiler | MATLAB Builder JA | SimBiology | Fixed-Point Toolbox | ||
|---|---|---|---|---|---|---|---|
| Compiler | Version | For MEX-file compilation and external usage of MATLAB Engine and MAT-file APIs | For shared library interface | For all features | For all features | For all features | For all features |
| Apple Xcode with gcc/g++ Available at no charge |
3.2 2, 3 | √ | √ | √ | √ | √ | |
| 3.1 4, 5 | √ | √ | √ | √ | √ | ||
| GNU gfortran Available at no charge |
4.2.2 | √ | |||||
| Sun Java Development Kit (JDK) Available at no charge |
1.5 | √ |
Simulink Product Family – Release 2010a
| Simulink | Simulink | Stateflow | Stateflow Coder | Real-Time Workshop |
Real-Time Workshop Embedded Coder | ||
|---|---|---|---|---|---|---|---|
| Compiler | Version | For all features | For Embedded MATLAB | For all features | For all features | When targeting the host OS | When targeting the host OS |
| Apple Xcode with gcc/g++ Available at no charge |
3.2 2, 3 | √ | √ | √ | √ | √ | √ |
| 3.1 4, 5 | √ | √ | √ | √ | √ | √ | |
| GNU gfortran Available at no charge |
4.2.2 | √ 6 | |||||
| Sun Java Development Kit (JDK) Available at no charge |
1.5 |
To determine the version of your compiler, see Solution 1-1880F.
Notes for the Mac Platform
- You must install a C compiler to use
loadlibrary. - The gcc/g++ development tools version 4.0.1 (Apple Computer, Inc. build 5493) and version 4.2.1 (Apple Computer, Inc. build 5646) are required for using Xcode 3.2 with MATLAB on all Mac systems. These are installed with Xcode.
- This compiler is supported on Mac OS X 10.6.
- The gcc/g++ development tools version 4.0.1 (Apple Computer, Inc. build 5488) are required for using Xcode 3.1 with MATLAB on all Mac systems. These are installed with Xcode.
- This compiler is supported on Mac OS X 10.5.
- 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.
Store