코드 생성 구성하기
출력 파일 이름, 위치, 유형, 언어와 같은 코드 생성 설정 구성
코드 생성 프로세스를 제어하고 구성하기 위한 많은 파라미터와 설정이 있습니다. 이러한 설정은 출력 빌드 유형(MEX, lib, dll 또는 exe)과 C 및 C++ 언어와 같은 특성을 제어합니다. 다른 구성 설정을 사용하면 가독성, 성능, 외부 코드 통합 등의 특정 요구 사항에 따라 생성 코드를 사용자 지정할 수 있습니다. 앱이나 명령줄에서 코드 생성 구성 객체의 구성 설정을 수정할 수 있습니다. coder.config를 사용하여 구성 객체를 생성할 수 있습니다. open을 사용하여 편집 앱에서 객체를 엽니다.
함수
coder.config | 코드 생성 구성 객체 만들기 |
코드 구성 설정
객체
coder.MexCodeConfig | Configuration parameters for MEX function generation from MATLAB code |
coder.CodeConfig | MATLAB 코드에서 C/C++ 코드를 생성하기 위한 구성 파라미터 |
coder.EmbeddedCodeConfig | Configuration parameters for C/C++ code generation from MATLAB code with Embedded Coder |
coder.HardwareImplementation | Hardware-specific configuration parameters for C/C++ code generation from MATLAB code |
coder.hardware | Create hardware board configuration object for C/C++ code generation from MATLAB code |
coder.ReplacementTypes | Configuration parameter to specify custom names for MATLAB built-in data types in C/C++ code generation |
도움말 항목
빌드 구성 기본 사항
- Configure Code Generation and Build Settings
Configure code generation and build configuration parameters at the command line or in the MATLAB® Coder™ app. - Paths and File Infrastructure Setup
Specify location of custom code. - Build Process Support for File and Folder Names
Troubleshoot build process errors that occur when file system issues prevent file processing. - Share Build Configuration Settings
Export project settings to a code generation configuration object or import the settings into a project. - Specify Code Configuration Parameters Interactively
Configure the code generation process by using the Code Generation Settings dialog box.
특정 빌드 옵션
- Understand and Control Partitioning of the Generated Code
Understand how file partitioning method and inlining settings interact to control the partitioning of the generated code. - Change Language Standard Used for Code Generation
The code generator uses the language standard that you specify in the build settings.