User`s guide
3 Compilation Process
Input and Output Files
In this section...
“Standalone Executable” on page 3-6
“C Shared Library” on page 3-7
“C++ Shared Library” on page 3-9
Standalone Executable
In this example, MATLAB Compiler takes the M-files foo.m and bar.m as
input and generates a standalone called
foo.
mcc -m foo.m bar.m
File Description
foo_main.c
The main-wrapper C source file containing the program’s
main function. The main function takes the input
arguments that are passed on the command line and
passesthemasstringstothe
foo function.
foo_mcc_component_data.c
C source file containing data needed by the MCR to run
the application. This data includes path information,
encryption keys, and other in iti al ization inf ormation for
the MCR.
foo.ctf
The CTF archive. This file contains a compressed and
encrypted archive of the M-files that make up the
application (
foo.m and bar.m). It also contains other
files called by the two main M-f iles as well as any other
content and data files needed at run time.
foo
The main file of the application. T his file reads and
executes the content stored in the CTF archive. On
Windows, this file is
foo.exe.
3-6