Suppress generation of fixed-point word size checks
Control generation of preprocessor directives that perform fixed-point word size checks
Since R2024a
Model Configuration Pane: Code Generation / Interface
Description
If your model uses fixed-point data types, the code generator creates preprocessor directives that perform fixed-point word size checks. If you want, for example, to improve code readability, you can use this parameter to suppress the generation of the fixed-point word size checks.
Settings
- On
Suppress the generation of the preprocessor directives. The generated code does not contain fixed-point word size checks.
You can check Hardware Implementation settings with reference to the target hardware by using:
The
buildStandaloneCoderAssumptions
(Embedded Coder) function. See Check Code Generation Assumptions (Embedded Coder).Processor-in-the-loop (PIL) simulations. See Verification of Code Generation Assumptions (Embedded Coder).
- Off
Generate the preprocessor directives. The generated code contains fixed-point word size checks.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | Off On if you check code generator assumptions. See Check Code Generation Assumptions (Embedded Coder) and Verification of Code Generation Assumptions (Embedded Coder). |
Programmatic Use
Parameter:RemoveFixptWordSizeChecks
|
Type: character vector |
Values:
'on' | 'off' |
Default:
'off' |
Version History
Introduced in R2024a
See Also
buildStandaloneCoderAssumptions
(Embedded Coder)
Topics
- Configure Generated Code with TLC
- Check Code Generation Assumptions (Embedded Coder)
- Verification of Code Generation Assumptions (Embedded Coder)