Largest atomic size: integer
R2026bLargest integer data type selected hardware can atomically load and store
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 selected hardware.
Use this parameter, where possible, to remove unnecessary double-buffering or unnecessary semaphore protection, based on data size, in generated multirate code.
Dependencies
This parameter is enabled only if you can modify it for the selected hardware.
Settings
Char (default) |
Short |
Int |
Long |
LongLongSelecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.
-
Char Specifies that
charis the largest integer data type that can be atomically loaded and stored on the hardware.-
Short Specifies that
shortis the largest integer data type that can be atomically loaded and stored on the hardware.-
Int Specifies that
intis the largest integer data type that can be atomically loaded and stored on the hardware.-
Long Specifies that
longis the largest integer data type that can be atomically loaded and stored on the hardware.-
LongLong Specifies that
long longis the largest integer data type that can be atomically loaded and stored on the hardware. You can set this parameter toLongLongonly if the hardware 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
recommendation for
simulation without code generation. |
Programmatic Use
Parameter:
ProdLargestAtomicInteger
|
| Type: string | character vector |
Value:
"Char" | "Short" | "Int" |
"Long" | "LongLong"
|
Default:
'Char'
|
Version History
Introduced in R2006b
See Also
Topics
- Hardware Implementation Pane
- Hardware Implementation Options (Simulink Coder)
- Specifying Production Hardware Characteristics (Simulink Coder)