MATLAB COMPILER RELEASE NOTES User's Guide Page 220

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 219
mcc
7-42
-W <type> (Function Wrapper). Control the generation of function wrappers for a
collection of Compiler-generatedM-files.Youprovide a list of functionsand the
Compiler generates the wrapp e r functions and any app ropriate gl obal variable
definition s . Thi s t abl e show s the valid ty pe o ptio ns.
Caution When generating function wrappers, you must speci fy all M-files
that are being linked together on the command line. These files are used to
produce the init ializatio n and te rminati on functio ns as w e ll as g lo bal variable
definitions. If the functions are not specified in this manner, undefined
symbols will be produced at link time or run-time crashes may occur.
-y (Number of Outputs). Provides more control over the number of val id 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. (Used with
-S option.)
Table 7-9: Function Wrapper Types
<Type> Description
mex
Produces a mexFunction() interface.
main
Produces a POSIX shell main() function.
simulink
Produces a Simulink C MEX S -function interface.
lib:<string>
Produce s an initiali zation and ter mination
function for use when compiling this
Compiler-generated code into a larger applicatio n.
This option also pr oduces a h eader file cont aining
prototypes f or all public functions in all M-file s
specified.
<string> beco mes the base ( f ile ) name
for the g enerated C/C ++ and header f ile. C re ates a
.exports file that contains all nonstatic function
names.
none
Does not produce a wrapper file. none is t he
default.
Page view 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 263 264

Comments to this Manuals

No comments