函数替换
使用代码替换工具或编程接口,为数学、内存、非限定、信号量、互斥、查找表等函数或您自己的自定义函数定义代码替换映射。控制数据的对齐方式。自定义代码匹配和替换过程。
工具
函数
主题
- Math Function Code Replacement
Develop a code replacement library to replace math functions.
- Memory Function Code Replacement
Define a code replacement mapping for a memory function.
- Nonfinite Function Code Replacement
Define a code replacement mapping for nonfinite utility functions.
- Algorithm-Based Code Replacement
Define a code replacement mapping based on the computation or approximation algorithm configured for a math function block.
- Lookup Table Function Code Replacement
Define a code replacement mapping for a lookup table function.
- Replace MATLAB Functions with Custom Code by Using the coder.replace Function
Replace a MATLAB function with a function in generated C or C++ code by using the
coder.replace
function. - Replace coder.ceval Calls to External Functions
Replace a function that you specify in a call to the
coder.ceval
function. - Buffer Index Calculation Code Replacement
Develop a code replacement library to replace circular buffer index calculations.
- Custom Function Code Replacement
Define a code replacement mapping for a custom C function.
- Compare Rounding and Overflow Modes in C/C++ Code and Simulink
Determine the rounding mode used in a division function for code replacement.