Bibliotheksentwicklung
Machen Sie sich mit der Codeersetzungsanpassung vertraut: Warum sie durchgeführt wird, was Sie ersetzen können und welche Beschränkungen Sie beachten müssen. Machen Sie sich mit dem Prozess zur Entwicklung von Codeersetzungsbibliotheken vertraut. Entwickeln Sie Bibliotheken interaktiv mit dem Code Replacement Tool oder programmatisch. Über Quick Start Library Development können Sie mit dem Prozess und mit den Tools experimentieren.
Tools
| Code Replacement Tool | Create, modify, and validate content of code replacement libraries |
| Code Replacement Viewer | Explore content of code replacement libraries |
Funktionen
Themen
Erste Schritte
- 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.
Workflow zur Entwicklung einer Codeersetzungsbibliothek
- Develop a Code Replacement Library
Workflow for developing a code replacement library.
- SCHRITT 1: Identify Code Replacement Library Requirements
- SCHRITT 2: Define Code Replacement Library Optimizations
- SCHRITT 3: Register Code Replacement Library
- SCHRITT 4: Verify Code Replacement Library
- SCHRITT 5: Deploy Code Replacement Library
Optionen für mehr Kontrolle
- 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. - Allow Shape Agnostic Match
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.
Fehlersuche
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.