In Embedded Coder®, specify a list of code replacement libraries that the code generator uses when producing code for a model. To select the code replacement library, click the Select button and use the Select code replacement libraries-prioritized dialog box.
Category: Code Generation > Interface
Does not use a code replacement library.
Named code replacement libraries
Generates calls to multiple platform-specific, compiler, custom, or standard code replacement libraries. 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, by using Embedded Coder.
Order the code replacement libraries based on the priority of code replacement. Libraries at the top of the list have a higher priority of replacement.
Specify multiple code replacement libraries enclosed by single quotes and separated by commas.
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:
For models that are sharing the location or are in the model hierarchy, you 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
Before regenerating code, you change the code replacement library name or contents.
This parameter appears only for ERT-based targets. For GRT-based targets, use the parameter Code replacement library.
When you generate code, this parameter requires Embedded Coder.
|Type: character vector|
|Safety precaution||No impact|