이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
코드 효율성 상충관계
준정규(subnormal) 숫자 계산을 수행하거나 시뮬레이션과 코드 생성 결과 간의 있을 수 있는 불일치를 방지하는 코드를 제거하여 생성 코드의 효율성을 개선합니다.
모델 설정
도움말 항목
- Design Techniques to Optimize Models for Efficient Code Generation
Apply design tools and techniques to optimize a model for code generation.
- Optimize Generated Code Using Code Efficiency Tools and Techniques
When generating production code from your model to deploy into a real-time embedded system, code efficiency is an important consideration.
- 코드 생성 어드바이저를 사용하여 코드 생성 목표에 맞게 모델 구성하기
코드 생성 어드바이저를 사용하여 모델이 코드 생성 목표에 부합하는지 확인하십시오.
- Generate Efficient Code by Setting Model Configuration Parameters
Choose the efficiency level and priorities for your generated code.
- Remove Code for Out-of-Range Floating Point to Integer Conversions
If the input values in your application are in the range of the output type, remove code for out-of-range floating-point to integer conversions.
- Remove Code That Maps NaN to Integer Zero
If input values of
NaNdo not exist in your application, specify that the code generator remove code that mapsNaNto integer zero. - Disable Nonfinite Checks or Inlining for Math Functions
Use code replacement library (CRL) customization entries to selectively disable nonfinite checks for math functions and inlining of math functions.
- Subnormal Number Execution Speed
Minimize the possibility of execution slowdowns or overruns due to subnormal number calculation latency.
- 정수 및 고정소수점 데이터에 대한 나눗셈 예외를 방지하는 코드 제거
정수 및 고정 소수점 데이터에 대한
INT_MIN/-1나눗셈 연산에서 0으로 나눗셈 및 오버플로우를 방지하는 코드를 제거하여 생성된 코드를 최적화합니다. - Remove Code from Tunable Parameter Expressions That Saturate Against Integer Overflow
Remove code that prevents integer overflow of tunable expression parameters for efficiency benefits.