Main Content

Support non-inlined S-functions


Specify whether to generate code for non-inlined S-functions. This parameter is not relevant and, therefore, is not supported for component models configured with a service interface.

Category: Code Generation > Interface


Default: Off


Generates code for non-inlined S-functions.


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.


  • 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.


  • 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

DebuggingNo impact
TraceabilityNo impact
Safety precaution

No recommendation

Related Topics