Choose a Code Replacement Library
About Choosing a Code Replacement Library
By default, the code generator does not use a code replacement library.
If you are considering using a code replacement library:
Explore available libraries. Identify one that best meets your application needs.
Consider the lists of application code replacement requirements and libraries that MathWorks® provides in What Is Code Replacement?.
Explore the contents of the library. See Explore Code Replacement Library Contents.
If you do not find a suitable library and you have an Embedded Coder® license, you can create a custom code replacement library. For more information, see What Is Code Replacement Customization? (Embedded Coder).
Explore Available Code Replacement Libraries
You can select the code replacement library to use for code
generation in a project, on the Custom Code tab,
by setting the Code replacement library parameter.
Alternatively, in a code configuration object, set the
Explore Code Replacement Library Contents
Use the Code Replacement Viewer to explore the content of a code replacement library.
At the command prompt, type
The viewer opens. To view the content of a specific library, specify the name of the library as an argument in single quotes. For example:
>> crviewer('GNU C99 extensions')
In the left pane, select the name of a library. The viewer displays information about the library in the right pane.
In the left pane, expand the library, explore the list of tables it contains, and select a table from the list. In the middle pane, the viewer displays the function and operator entries that are in that table, along with abbreviated information for each entry.
In the middle pane, select a function or operator. The viewer displays information from the table entry in the right pane.
If you select an operator entry that specifies net slope fixed-point parameters (instantiated from entry class
RTW.TflCOperationEntryGenerator_NetSlope), the viewer displays an additional tab that shows fixed-point settings.
See Code Replacement Viewer for details on what the viewer displays.