You copied the Doc URL to your clipboard.

Address alignment in A32/T32 code

The A bit in the System Control Register (SCTLR) controls whether alignment checking is enabled or disabled. If enabled, all unaligned word and halfword transfers cause an alignment exception. If disabled, unaligned accesses are permitted for the LDR, LDRH, STR, STRH, LDRSH, LDRT, STRT, LDRSHT, LDRHT, STRHT, and TBH instructions. Other data-accessing instructions always cause an alignment exception for unaligned data.For STRD and LDRD, the specified address must be word-aligned.

If all your data accesses are aligned, you can use the --no_unaligned_access command-line option, to avoid linking in any library functions that support unaligned accesses.

See also

Reference

armasm Reference Guide:

Was this page helpful? Yes No