Determines whether double, long double, and long long types are naturally aligned. This option is equivalent to specifying option align. This content is specific to C++; it does not apply to DPC++.
Only available on IA-32 architecture
Linux: | -malign-double -mno-align-double |
Windows: | None |
None
-mno-align-double |
Types are aligned according to the gcc model, which means they are aligned to 4-byte boundaries. |
This content is specific to C++; it does not apply to DPC++. For details, see the align option.
This content is specific to DPC++.
This option determines whether variables and arrays are naturally aligned.
This option determines whether variables and arrays are naturally aligned. It forces the following natural alignment:
Type |
Alignment |
---|---|
double |
8 bytes |
long long |
8 bytes |
long double |
16 bytes |
If you are interacting with compatible libraries, this option can improve performance by reducing misaligned accesses. However, if you are interacting with noncompatible libraries, your application may not perform as expected.
None