User`s guide
mcc
7-41
-y (Number of Outputs). Provide more control over the number of valid outputs for
your Simulink S-function. This option specifically sets the number of outputs
(
y) for your function. If -y is omitted, the output will be dynamically sized. (Use
this with the
-S option.)
Compiler and Environment Options
-b (Visual Basic File). Generate a Visual Basic file (.bas) that contains the
Microsoft Excel Formula Function interface to the Compiler-generated COM
object.When imported into the workbook Visual Basic code, this code allows the
MATLAB function to be seen as a cell formula function.
-B <filename>:[<a1>,<a2>,...,<an>] (Bundle of Compiler Settings). Replace
-B <filename>:[<a1>,<a2>,...,<an>] on the mcc command line with the
contents of the specified file. The file should contain only
mcc command line
options and corresponding arguments and/or other filenames. The file may
contain other
-B options.
A bundle file can include replacement parameters for Compiler options that
accept names and version numbers. For example, there is a bundle file for C
shared libraries,
csharedlib, that consists of
-t -W lib:%1% -T link:lib -h libmmfile.mlib
To invoke the Compiler to produce a C shared library using this bundle, you
would use
mcc -B csharedlib:mysharedlib <f1>,<f2>,...
In general, each %n% in the bundle file will be replaced with the corresponding
option specified to the bundle file. Use
%% to include a % character. It is an error
to have too many or too few options to the bundle file.
You can place options that you always set in an
mccstartup file. For more
information, see “Setting Up Default Options” on page 7-27.