What Is Unaligned Address?

An unaligned address is then an address that isn't a multiple of the transfer size. The meaning in AXI4 would be the same.

What is unaligned memory?

Unaligned memory accesses occur when you try to read N bytes of data starting from an address that is not evenly divisible by N (i.e. addr % N != 0). For example, reading 4 bytes of data from address 0x10004 is fine, but reading 4 bytes of data from address 0x10005 would be an unaligned memory access.

Does arm allow unaligned accesses?

accessing unaligned memory

This solution is safe in all circumstances. It also compiles into a trivial load register operation on x86 target using GCC. However, on ARM target using GCC, it translates into a way too large and useless assembly sequence, which bogs down performance.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.