User`s guide
5
Controlling
Code Generation
Code Generation Overview .............5-3
Compiling Private and Method Functions ......5-6
The Generated Header Files .............5-8
Internal Interface Functions ............5-11
Supported Executable Types ............5-20
GeneratingFiles...................5-20
MEX-Files .....................5-21
MainFiles .....................5-21
SimulinkS-Functions.................5-23
CLibraries.....................5-23
CSharedLibrary ..................5-24
C++Libraries....................5-26
Porting Generated Code to a Different Platform . . . . . . 5-27
Formatting Compiler-Generated Code ........5-29
ListingAllFormattingOptions.............5-29
SettingPageWidth..................5-29
SettingIndentationSpacing..............5-31
Including M-File Information in Compiler Output . . . 5-34
ControllingCommentsinOutputCode..........5-34
Controlling #line Directives in Output Code . . . . . . . . 5-36
Controlling Information in Run-Time Errors . . . . . . . 5-38
Interfacing M-Code to C/C++ Code ..........5-40
CExample .....................5-40
UsingPragmas ...................5-42
Print Handlers ...................5-44