MATLAB Compiler    

Microsoft Windows on PCs

This section examines the system requirements, installation procedures, and configuration procedures for the MATLAB Compiler on PCs running Microsoft Windows.

System Requirements

You cannot install the MATLAB Compiler unless MATLAB 6.5 (Release 13) is already installed on the system. The MATLAB Compiler imposes no operating system or memory requirements beyond what is necessary to run MATLAB. The MATLAB Compiler consumes a small amount of disk space.

Table 2-3, Requirements for Creating PC Applications, shows the requirements for creating PC applications with the MATLAB Compiler.

Table 2-3: Requirements for Creating PC Applications
To create...
You need...
MEX-files
ANSI C compiler (see following note)
MATLAB Compiler
Stand-alone C applications
ANSI C compiler (see following note)
MATLAB Compiler
Stand-alone C++ applications
C++ compiler
MATLAB Compiler

Supported ANSI C and C++ PC Compilers

To create C MEX-files, stand-alone C/C++ applications, or dynamically linked libraries (DLLs) with the MATLAB Compiler, you must install and configure a supported C/C++ compiler. Use one of the following 32-bit C/C++ compilers that create 32-bit Windows dynamically linked libraries (DLLs) or Windows NT applications:

Applications generated by the MATLAB Compiler are 32-bit applications and only run on any MATLAB-supported Microsoft Windows systems. For a complete list of supported Windows platforms, see http://www.mathworks.com/products/system.shtml/Windows.

Known Compiler Limitations.   There are several known restrictions regarding the use of supported compilers:

Compiler Options Files

The MathWorks provides options files for every supported C or C++ compiler. These files contain the necessary flags and settings for the compiler. This table shows the preconfigured PC options files that are included with MATLAB.

Compiler
Options File
Lcc C, Version 2.4 (included with MATLAB)
lccopts.bat
Microsoft Visual C/C++, Version 5.0
Microsoft Visual C/C++, Version 6.0
Microsoft Visual C/C++, Version 7.0
msvc50opts.bat
msvc60opts.bat
msvc70opts.bat

Watcom C/C++, Version 10.6
Watcom C/C++, Version 11.0
watcopts.bat (supported for mex only, not for mbuild)
wat11copts.bat (supported for mex only, not for mbuild)

Borland C++ Builder 3
Borland C++ Builder 4
Borland C++ Builder 5
Borland C++ Builder 6
bcc53opts.bat
bcc54opts.bat
bcc55opts.bat
bcc56opts.bat

Locating Options Files

To locate your options file, the mex script searches the following:

mex uses the first occurrence of the options file it finds. If no options file is found, mex searches your machine for a supported C compiler and uses the factory default options file for that compiler. If multiple compilers are found, you are prompted to select one.

The User Profile Directory Under Windows.   The Windows user profile directory is a directory that contains user-specific information such as desktop appearance, recently used files, and Start menu items. The mex and mbuild utilities store their respective options files, mexopts.bat and compopts.bat, which are created during the -setup process, in a subdirectory of your user profile directory, named Application Data\MathWorks\MATLAB\R13. Under Windows with user profiles enabled, your user profile directory is %windir%\Profiles\username. Under Windows with user profiles disabled, your user profile directory is %windir%. You can determine whether or not user profiles are enabled by using the Passwords control panel.


  MATLAB Compiler Verification Installation