이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
모델 구성 세트 사용자 지정
코드 생성기의 코드 생성 방법을 사용자 지정
모델 구성 세트에는 코드 생성기가 모델에서 코드를 생성하는 방법을 제어하는 파라미터가 포함되어 있습니다. 생성 코드의 코드 최적화, 인터페이스, 코드 스타일, 빌드 옵션 및 기타 측면을 제어하려면 구성 파라미터를 사용합니다. 여러 모델에 동일한 설정을 사용하려는 경우, 하나의 구성 세트를 여러 모델 간에 공유할 수 있습니다. 스크립트를 사용하여 프로그래밍 방식으로 코드 생성을 위해 모델을 구성할 수도 있습니다.
모델 설정
도움말 항목
코드 생성 구성 세트
- 코드 생성 구성
구성 파라미터 대화 상자에서 코드 생성에 특화된 모델 구성 파라미터를 수정합니다. - Use Configuration Reference to Select Code Generation Target
Select a code generation target for a model reference hierarchy without modifying individual models. - 프로그래밍 방식으로 모델의 코드 생성 파라미터 구성하기
MATLAB® 명령줄에서 코드 생성에 특화된 모델 파라미터를 수정합니다. - Recommended Settings Summary for Model Configuration Parameters
Summary of code generation parameters for tuning model and target configurations.
모델 구성 파라미터: 코드 생성
- 모델 구성 파라미터: 코드 생성
모델의 활성 구성 세트에 대한 코드 생성을 정의하는 데 사용되는 일반 파라미터로, 타깃 선택, 문서화 및 빌드 프로세스가 포함됩니다. - 모델 구성 파라미터: 코드 생성 최적화
코드 최적화를 구성하기 위한 파라미터. - Model Configuration Parameters: Code Generation Report
Parameters for configuring code generation reports. - Model Configuration Parameters: Comments
Parameters for controlling the comments that you want to automatically generate and insert into the generated code. - 모델 구성 파라미터: 코드 생성 식별자
코드 생성 시 식별자에 대해 자동으로 생성되는 명명 규칙을 선택하기 위한 파라미터. - 모델 구성 파라미터: 코드 생성 사용자 지정 코드
생성된 파일에 포함할 사용자 지정 C 코드, 폴더, 소스 파일 및 라이브러리 목록을 생성하기 위한 파라미터. - Model Configuration Parameters: Code Generation Interface
Parameters for selecting the target software environment, output variable name modifier, and data exchange interface.
코드 주석
- Configure Code Comments
Configure how code generator inserts comments into generated code. - Include MATLAB Code as Comments in Generated Code
Correlate code generated for a MATLAB Function block with MATLAB source code.
식별자
- Construction of Generated Identifiers
For generic real-time (GRT) and rapid simulation (RSim) targets, the code generator automatically constructs identifiers for variables and functions in the generated code. - 예약된 키워드
코드 생성기를 사용하여 C 또는 C++ 코드를 생성하는 경우, 모델에는 내부 용도로 예약된 키워드가 포함되어서는 안 됩니다.
