MATLAB Compiler |
 |
Chapter 1
Introducing the
MATLAB Compiler
Introduction
This book describes version 2.1 of the MATLAB® Compiler. The MATLAB Compiler takes M-files as input and generates C or C++ source code or P-code as output. The MATLAB Compiler can generate these kinds of source code:
- C source code for building MEX-files.
- C or C++ source code for combining with other modules to form stand-alone applications. Stand-alone applications do not require MATLAB at run time; they can run even if MATLAB is not installed on the system. The MATLAB Compiler does require the MATLAB C/C++ Math Library to create stand-alone applications that rely on the core math and data analysis capabilities of MATLAB. The MATLAB Compiler also requires the MATLAB C/C++ Graphics Library in order to create stand-alone applications that make use of Handle Graphics® functions.
- C code S-functions for use with Simulink®.
- C shared libraries (dynamically linked libraries, or DLLs, on Microsoft Windows 95/98/2000/NT) and C++ static libraries. These can be used without MATLAB on the system, but they do require the MATLAB C/C++ Math Library.
This chapter takes a closer look at these categories of C and C++ source code and explains the value of compiled code.
| Typographical Conventions | | Before You Begin |  |