User`s guide
Code Generation Overview
5-5
This table shows the names of the files generated when you compile a generic
M-file (
file.m) for the MEX and stand-alone targets. The table also shows the
files generatedwhen you compile a set of files (
filelist) for the library target.
Note Many of the code snippets generated by the MATLAB Compiler t hat
are used in this chapter use the
-F page-width option to produce readable
code that fits nicely on the book’s p rinted page. For more information about
the
page-width option, see “Formatting Compiler-Generated Code” on page
5-29.
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