User`s guide

Overview of MATLAB Compiler Technology
Wrapper Code Generation
This s tep generates all the source code needed to create the target component,
including
The C/C++ interface code to those M-functions supplied on the comm and
line (
foo_main.c). For libraries and components, this file includes all of
the generated interface functions.
A component data file that contains information needed to execute the
M-code at run-time. This data includes path information and encryption
keys needed to load the M-code stored in the component’s CTF archive.
Archive Creation
The list of MATLAB files (M-files and MEX-files) created during dependency
analysis is used to create a CTF archive that contains the files needed by
the component to properly execute at run-time. The files are encrypted and
compressed into a single file for deployment. Directory information is also
included so that the content is properly installed on the target machine.
C/C++ Compilation
This step co mpiles the generated C/C++ files from wrapper co de generation
into object code. For targets that support the inclusion of user-supplied C/C++
code on the
mcc commandline,thiscodeisalsocompiledatthisstage.
Linking
The final step links the generated object files with the necessary MATLAB
libraries to create the finished component.
The C/C++ compilation and linking steps use the
mbuild utility that is
included with MATLAB Compiler.
3-5