5.7.1.21 Unaligned-access Option

The -munaligned-access option enables reading and writing of 16- and 32-bit values from addresses that are not 16- or 32-bit aligned. This option does not affect instruction fetches.

The -mno-unaligned-access form of this option accesses 16- and 32-bit values in data structures one byte at a time.

If no option is specified, unaligned access is disabled for all pre-Arm v6, Arm v6-M, and Arm v8-M architectures, and enabled for all other architectures.