Design and configure a model to control the code that the code generator produces for its subsystems. For more information, see Control Generation of Functions for Subsystems.
Control generation of functions for subsystems and whether the code generator stores the generated functions in memory sections.
Describes how to generate and build a standalone executable from a subsystem.
To generate a separate subsystem function and a separate file for a subsystem in a model:
The code generator attempts to generate constant parameters to the shared utilities folder first.
When you develop models and generate code for subsystems, use the modeling guideline recommendations.
Generate nonreusable subsystem function interface that does not change.
You can configure a nonvirtual subsystem to inline the subsystem code with the model code.
The Function packaging parameter
Auto option can optimize code in situations in which identical subsystems contain other identical subsystems, by both reusing and inlining generated code.