Use C restrict qualifier
Model Configuration Pane: Code Generation / Optimization
Description
The Use C restrict qualifier parameter instructs the code generator to apply the restrict keyword to function arguments when it might enable additional compiler optimizations.
Dependencies
To enable this parameter:
Set the Language standard parameter to C99 (ISO)
Select the Specify custom optimizations parameter.
Settings
off
(default) |
on
- On
Applies the restrict keyword to pointer arguments automatically. The code generator does not apply the restrict keyword if the pointer is aliased.
- Off
Does not apply the restrict keyword automatically.
Examples
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | On |
| Safety precaution | Off |
Programmatic Use
Parameter:
UseRestrictQualifier
|
| Type: character vector |
Value:
'on' | 'off'
|
Default:
'off'
|
Version History
Introduced in R2026a