이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
모델 구성 세트 사용자 지정
코드 생성기의 코드 생성 방법을 사용자 지정
모델 구성 세트에는 코드 생성기가 모델에서 코드를 생성하는 방법을 제어하는 파라미터가 포함되어 있습니다. 생성 코드의 코드 최적화, 인터페이스, 코드 스타일, 빌드 옵션 및 기타 측면을 제어하려면 구성 파라미터를 사용합니다. 여러 모델에 동일한 설정을 사용하려는 경우, 하나의 구성 세트를 여러 모델 간에 공유할 수 있습니다. 스크립트를 사용하여 프로그래밍 방식으로 코드 생성을 위해 모델을 구성할 수도 있습니다.
모델 설정
도움말 항목
코드 생성 구성 세트
- Code Generation Configuration
Modify the model configuration parameters specific to code generation from the Configuration Parameters Dialog box. - Use Configuration Reference to Select Code Generation Target
Select a code generation target for a model reference hierarchy without modifying individual models. - Configure Code Generation Parameters for Model Programmatically
Modify the model configuration parameters specific to code generation from the MATLAB® command line. - Recommended Settings Summary for Model Configuration Parameters
Summary of code generation parameters for tuning model and target configurations.
모델 구성 파라미터: 코드 생성
- Model Configuration Parameters: Code Generation
General parameters for defining code generation for a model's active configuration set, including target selection, documentation, and build process. - Model Configuration Parameters: Code Generation Optimization
Parameters for configuring code optimization. - 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. - Model Configuration Parameters: Code Generation Identifiers
Parameters for selecting automatically generated naming rules for identifiers in code generation. - Model Configuration Parameters: Code Generation Custom Code
Parameters for creating a list of custom C code, folders, source files, and libraries to include in generated files. - 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. - Reserved Keywords
If you use the code generator to produce C or C++ code, your model must not contain keywords that are reserved for internal use.