Specify whether code generation modularizes the code components into many files or compacts the generated code into a few files. You can specify a different file packaging format for each referenced model.
Category: Code Generation > Code Placement
Default: Modular
Modular
Outputs
, model
_data.c
,
and model
_private.h
, in
addition to generating model
_types.h
and model
.c
.
For the contents of these files, see the table in Generated Code Modules.model
.h
Supports generating separate source files for subsystems. For more information on generating code for subsystems, see Control Generation of Functions for Subsystems.
If you specify Shared code placement as Auto
on the Code Generation > Interface pane of the Configuration Parameter
dialog box, some utility files are in the build
directory. If you specify Shared code
placement as Shared
location
, separate files are
generated for utility code in a shared
location.
Compact (with separate data file)
Conditionally outputs
,
in addition to generating model
_data.c
and model
.c
.model
.h
If you specify Shared code placement as Auto
on the Code Generation > Interface pane of the Configuration Parameter
dialog box, utility algorithms are defined in
.
If you specify Shared code
placement as model
.cShared
location
, separate files are
generated for utility code in a shared
location.
Does not support separate source files for subsystems.
Does not support models with noninlined S-functions.
Compact
The contents of
are
in model
_data.c
.model
.c
The contents of
and model
_private.h
are
in model
_types.h
or model
.h
. model
.c
If you specify Shared code placement as Auto
on the Code Generation > Interface pane of the Configuration Parameter
dialog box, utility algorithms are defined in
.
If you specify Shared code
placement as model
.cShared
location
, separate files are
generated for utility code in a shared
location.
Does not support separate source files for subsystems.
Does not support models with noninlined S-functions.
Parameter: ERTFilePackagingFormat |
Type: character vector |
Value: 'Modular' | 'CompactWithDataFile' | 'Compact' |
Default: 'Modular' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |