User`s guide
5 Controlling Code Generation
5-4
Note Many of the code snippets generated by the MATLAB Compiler that
are used in this chapter use the
-F page-width option to produce readable
code that fits nicely on the book’s printed page. For more information about
the
page-width option, see “Formatting Compiler-Generated Code” on page
5-35.
Table 5-1: Compiler-Generated Files
CC++
Header
file.h file.hpp
Code
file.c file.cpp
Main Wrapper
(-W main)
file_main.c file_main.cpp
MEX Wrapper
(-W mex)
file_mex.c
N/A (C++
MEX-files are not
supported.)
Simulink Wrapper
(-W simulink)
file_simulink.c
N/A (C++
MEX-files are not
supported.)
Library
(-W lib:filelist)
filelist.c
filelist.h
filelist.exports
filelist.mlib
filelist.cpp
filelist.hpp
filelist.mlib
COM Component
(-W com:compname[,classname[,major.minor]])
(-W comHG:compname[,classname[,major.minor]])
compname_idl.idl
compname_com.hpp
compname_com.cpp
compname_dll.cpp
compname.def
compname.rc
compname_idl.idl
compname_com.hpp
compname_com.cpp
compname_dll.cpp
compname.def
compname.rc