주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

라이브러리 개발

코드 대체 라이브러리 개발

코드 대체 사용자 지정이 무엇인지, 왜 하는지, 무엇을 교체할 수 있는지, 그리고 제한 사항은 무엇인지 알아봅니다. 코드 대체 라이브러리를 개발하기 위한 프로세스에 대해 알아봅니다. 대화형 방식으로 코드 대체 툴을 사용하여 라이브러리를 개발하거나 프로그래밍 방식으로 라이브러리를 개발합니다. Quick Start Library Development 힝목을 사용하여 프로세스와 툴을 실험해 보십시오.

코드 대체 툴Create, modify, and validate content of code replacement libraries
코드 대체 뷰어Explore content of code replacement libraries

함수

모두 확장

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.TflBlasEntryGeneratorCreate code replacement table entry for a BLAS operation
RTW.TflCBlasEntryGeneratorCreate code replacement table entry for a CBLAS operation
RTW.TflCFunctionEntryCreate code replacement table entry for a function
RTW.TflCFunctionEntryMLCustom code replacement table function entry
RTW.TflCOperationEntryCreate code replacement table entry for an operator
RTW.TflCOperationEntryMLCustom code replacement table operation entry
RTW.TflCOperationEntryGeneratorCreate code replacement table entry for a fixed-point addition or subtraction operation
RTW.TflCOperationEntryGenerator_NetSlopeCreate code replacement table entry for a net slope fixed-point operation
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
setTflCOperationEntryParametersSet specified parameters for operator 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
registerCPPFunctionEntryCreate C++ function entry based on specified parameters and register in code replacement table
setNameSpaceSet namespace for C++ function entry in code replacement table
addComplexTypeAlignmentSpecify alignment boundary of a complex type
setReservedIdentifiersRegister reserved identifiers to associate with code replacement library
coder.ceval생성 코드에서 C/C++ 함수 호출
coder.dataAlignmentSpecify data alignment for global or entry-point/exported function input and output arguments
coder.replaceReplace current MATLAB function implementation with code replacement library function in generated code

도움말 항목

시작하기

코드 대체 라이브러리 개발을 위한 워크플로우

추가 제어를 위한 옵션

문제 해결

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.

관련 정보