C/C++Compiler Suite 2.1 for converting MATLAB® applications that contain math, GUIs, and graphics into freely distributable stand-alone C and C++ code…
MAT LAB Compiler The MATLAB Compiler component serves two primary user groups: Developers looking to deploy MATLAB applications to stand-alone C/C++ applications and users who want to improve code performance by compiling their MATLAB algorithms and converting them to C. The MATLAB Compiler automatically converts M-files into C and C++ source code, eliminating time-consuming and error-prone manual translation and reducing development time for applications that run outside the MATLAB environment. Running inside or outside the MATLAB environment, the MATLAB Compiler can automatically translate M-file functions into: • C/C++ source code or stand-alone external applications that run independently of MATLAB (requires the C/C++ Math and Graphics Library components) • C code S-functions for use in Simulink® models • C versions of MATLAB M-code programs that are linked in at runtime (MEX-files)…
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. Before You Begin Before reading this book, you should already be comfortable writing M-files . If you are not, see “Programming and Data Types” in the MATLAB documentation. Note The phrase MATLAB interpreter refers to the application that accepts MATLAB commands, executes M-files and MEX-files, and behaves as described in Using MATLAB . When you use MATLAB, you are using the MATLAB interpreter. The phrase MATLAB Compiler refers to this product that translates M-files to C or C++ source code. This book distinguishes references to the MATLAB Compiler by using the word ‘Compiler’ with a capital C. References to “compiler” with a lowercase c refer to your C or C++ compiler.
Download MATLAB Compiler Users Guide.Pdf
from http://www.pdfee.com
No comments:
Post a Comment