Largest atomic size: integer
Description
Specify the largest integer data type that can be atomically loaded and stored on the selected hardware.
Category: Hardware Implementation
Settings
Default:
Char
CharSpecifies that
charis the largest integer data type that can be atomically loaded and stored on the hardware.ShortSpecifies that
shortis the largest integer data type that can be atomically loaded and stored on the hardware.IntSpecifies that
intis the largest integer data type that can be atomically loaded and stored on the hardware.LongSpecifies that
longis the largest integer data type that can be atomically loaded and stored on the hardware.LongLongSpecifies that
long longis the largest integer data type that can be atomically loaded and stored on the hardware.
Tip
Use this parameter, where possible, to remove unnecessary double-buffering or unnecessary semaphore protection, based on data size, in generated multirate code.
Dependencies
Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.
This parameter is enabled only if you can modify it for the selected hardware.
You can set this parameter to
LongLongonly if the hardware supports the Clong longdata type and you have selected Enable long long.
Command-Line Information
Parameter:
ProdLargestAtomicInteger |
| Type: string |
Value:
'Char' | 'Short' | 'Int' |
'Long' | 'LongLong' |
Default:
'Char' |
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | Target specific |
| Safety precaution | No
recommendation for simulation
without code generation. |
See Also
Hardware Implementation Options (Simulink Coder)
Specifying Production Hardware Characteristics (Simulink Coder)