Main Content

Function Replacement

Define code replacement mappings for functions

Use the Code Replacement Tool or programming interface to define code replacement mappings for math, memory, nonfinite, semaphore, mutex, lookup table, or your own custom functions. Control data alignment. Customize the code match and replacement process.

Tools

Code Replacement ToolCreate, modify, and validate content of code replacement libraries
Code Replacement ViewerExplore content of code replacement libraries

Functions

expand all

addEntryAdd table entry to collection of table entries registered in code replacement table
createCRLEntryCreate code replacement table entry from conceptual and implementation argument string specifications
registerCFunctionEntryCreate function entry based on specified parameters and register in code replacement table
registerCPPFunctionEntryCreate C++ function entry based on specified parameters and register in code replacement table
registerCPromotableMacroEntryCreate promotable code replacement macro entry based on specified parameters and register in code replacement table (for abs function replacement only)
RTW.TflCFunctionEntryCreate code replacement table entry for a function
RTW.TflCFunctionEntryMLCustom code replacement table function entry
RTW.TflCSemaphoreEntryCreate code replacement table entry for a semaphore or mutex
RTW.TflTableCreate code replacement table
setTflCFunctionEntryParametersSet specified parameters for function entry in code replacement table
setTflCSemaphoreEntryParametersSet specified parameters for semaphore entry in code replacement table
addConceptualArgAdd conceptual argument to array of conceptual arguments for code replacement table entry
addDWorkArgAdd DWork argument for entry in code replacement table
copyConceptualArgsToImplementationCopy conceptual argument specifications to implementation specifications of an entry for code replacement table entry
createAndAddImplementationArgCreate implementation argument from specified properties and add to implementation arguments for code replacement table entry
createAndSetCImplementationReturnCreate implementation return argument from specified properties and add to implementation for code replacement table entry
createCRLEntryCreate code replacement table entry from conceptual and implementation argument string specifications
createAndAddConceptualArgCreate conceptual argument from specified properties and add to conceptual arguments for code replacement table entry
getTflArgFromStringCreate code replacement argument based on specified name and built-in data type
getTflDWorkFromStringCreate code replacement DWork argument for semaphore entry based on specified name and data type
addAdditionalHeaderFileAdd header file to array of header files for code replacement table entry
addAdditionalIncludePathAdd include path to array of include paths for code replacement table entry
addAdditionalLinkObjAdd link object to array of link objects for code replacement table entry
addAdditionalLinkObjPathAdd link object path to array of link object paths for code replacement table entry
addAdditionalSourceFileAdd source file to array of source files for code replacement table entry
addAdditionalSourcePathAdd source path to array of source paths for code replacement table entry
enableCPPEnable C++ support for function entry in code replacement table
setNameSpaceSet namespace for C++ function entry in code replacement table
addAlgorithmPropertyAdd algorithm properties for code replacement table entry
getAlgorithmParametersExamine algorithm parameter settings for lookup table function code replacement table entry
setAlgorithmParametersSet algorithm parameters for lookup table function code replacement table entry
addComplexTypeAlignmentSpecify alignment boundary of a complex type
setReservedIdentifiersRegister reserved identifiers to associate with code replacement library
coder.cevalCall C/C++ function from generated code
coder.replaceReplace current MATLAB function implementation with code replacement library function in generated code

Topics

Related Information