Learn about what code replacement customization is, why do it, what you can replace, and limitations. Get familiar with the process for developing code replacement libraries. Develop libraries interactively with the Code Replacement Tool or programmatically. Experiment with the process and tools by using Quick Start Library Development.
Code Replacement Tool | Create, modify, and validate content of code replacement libraries |
Code Replacement Viewer | Explore content of code replacement libraries |
What Is Code Replacement Customization?
Customize how and when the code generator replaces C/C++ code that it generates for functions and operators.
Code You Can Replace from MATLAB Code
Review lists of functions and operators the code generator can replace depending on the code replacement library that you specify.
Quick Start Library Development
Develop a code replacement library that includes an entry for generating replacement code for a math function.
Develop a Code Replacement Library
Workflow for developing a code replacement library.
Data Alignment for Code Replacement
Define code replacement mappings that align data for a replacement function to a specified boundary.
Array Layout and Code Replacement
Define code replacement mappings that specify data layout for storing array elements in memory.
Shape-agnostic matrix replacement for Embedded Coder CRL.
Reserved Identifiers and Code Replacement
C/C++ programming language reserved keywords as identifiers and function names in code replacement entries.
Remap Operator Output to Function Input
Meet specific generated code patterns by remapping operator outputs to input positions in your replacement function argument list.
Customize Match and Replacement Process
Add logic to the code replacement match and replacement process for functions or operators.
Troubleshoot Code Replacement Library Registration
If a code replacement library is not listed as a configuration option or does not appear in the Code Replacement Viewer, troubleshoot the library registration.
Troubleshoot Code Replacement Misses
Use miss reason messages that appear in the Code Replacement Viewer to analyze and correct code replacement misses.