Largest atomic size: integer
Largest integer data type supported for atomic loading and storage on test hardware
Model Configuration Pane: Hardware Implementation
Description
The Largest atomic size: integer parameter specifies the largest integer data type that can be atomically loaded and stored on the hardware that you use to test code. Use this parameter, where possible, to remove unnecessary double-buffering or unnecessary semaphore protection, based on data size, in generated multirate code.
Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.
Dependencies
This parameter is enabled only if you can modify it for the selected hardware.
Settings
Char (default) | Short | Int | Long | LongLongCharSpecifies that
charis the largest integer data type that can be atomically loaded and stored on the hardware that you use to test code.ShortSpecifies that
shortis the largest integer data type that can be atomically loaded and stored on the hardware that you use to test code.IntSpecifies that
intis the largest integer data type that can be atomically loaded and stored on the hardware that you use to test code.LongSpecifies that
longis the largest integer data type that can be atomically loaded and stored on the hardware that you use to test code.LongLongSpecifies that
long longis the largest integer data type that can be atomically loaded and stored on the hardware that you use to test code.You can set this parameter value to
LongLongonly if the hardware used to test the code supports the Clong longdata type and you have selected Enable long long.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | Target specific |
| Safety precaution | No impact when Test hardware is the same as production hardware is selected. If it is not selected, no recommendation. |
Programmatic Use
Parameter: TargetLargestAtomicInteger |
| Type: string | character vector |
Values:
'Char' | 'Short' | 'Int' |
'Long' | 'LongLong' |
Default: 'Char' |
Version History
Introduced in R2010a
See Also
Topics
- Specifying Test Hardware Characteristics (Simulink Coder)
- Hardware Implementation Options (Simulink Coder)
- Support long long
- Hardware Implementation Pane