Main Content

Support non-inlined S-functions

Description

Specify whether to generate code for non-inlined S-functions.

Category: Code Generation > Interface

Settings

Default: Off

On

Generates code for non-inlined S-functions.

Off

Does not generate code for non-inlined S-functions. If this parameter is off and the model includes a non-inlined S-function, an error occurs during the build process.

Tip

  • Inlining S-functions is highly advantageous in production code generation, for example, for implementing device drivers. In such cases, clear this option to enforce use of inlined S-functions for code generation.

  • Non-inlined S-functions require additional memory and computation resources, and can result in significant performance issues. Consider using an inlined S-function when efficiency is a concern.

Dependencies

  • This parameter only appears for ERT-based targets.

  • This parameter requires an Embedded Coder® license when generating code.

  • Selecting this parameter also selects Support: floating-point numbers and Support: non-finite numbers. If you clear Support: floating-point numbers or Support: non-finite numbers, a warning is displayed during code generation because these parameters are required by the S-function interface.

Command-Line Information

Parameter: SupportNonInlinedSFcns
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOff
Safety precaution

No recommendation

Related Topics