Main Content

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

Off (default) | On
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:

Off

Generate the preprocessor directives. The generated code contains fixed-point word size checks.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo 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