Code replacement library

Description

Specify a code replacement library the code generator uses when producing code for a model.

Category: Code Generation > Interface

Settings

Default: None

None

Does not use a code replacement library.

Named code replacement library

Generates calls to a specific platform, compiler, or standards code replacement library. The list of named libraries depends on:

  • Installed support packages.

  • System target file, language, standard math library, and device vendor configuration.

  • Whether you created and registered code replacement libraries, using the Embedded Coder® product.

Tips

  • Before setting this parameter, verify that your compiler supports the library that you want to use. If you select a parameter value that your compiler does not support, compiler errors can occur.

  • If you set parameter Shared code placement to Shared location or you generate code for models in a model reference hierarchy,

    • Models that are sharing the location or are in the model hierarchy must specify the same code replacement library (same name, tables, and table entries).

    • If you change the name or contents of the code replacement library and rebuild the model from the same folder as the previous build, the code generator reports a checksum warning (see Manage the Shared Utility Code Checksum). The warning prompts you to remove the existing folder and stop or stop code generation.

  • If both of the following conditions exist for a model that contains Stateflow® charts, the Simulink® software regenerates code for the charts and recompiles the generated code.

    • You do not set parameter Shared code placement to Shared location.

    • You change the code replacement library name or contents before regenerating code.

Command-Line Information

Parameter: CodeReplacementLibrary
Type: character vector
Value: 'None' | 'GNU C99 extensions' | 'Intel IPP for x86-64 (Windows)' | 'Intel IPP/SSE for x86-64 (Windows)' | 'Intel IPP for x86-64 (Windows for MinGW compiler)' |'Intel IPP/SSE for x86-64 (Windows for MinGW compiler)' | 'Intel IPP for x86/Pentium (Windows)' | 'Intel IPP/SSE x86/Pentium (Windows)' | 'Intel IPP for x86-64 (Linux)' | 'Intel IPP/SSE with GNU99 extensions for x86-64 (Linux)'
Default: 'None'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyValid library
Safety precautionNo impact

Related Topics