What is the difference between aligned and unaligned memory access?
I work on an TMS320C64x DSP, and I want to use the intrinsic functions (C functions for assembly instructions) and it has
ushort & _amem2(void *ptr);
ushort & _mem2(void *ptr);
where _amem2
does an aligned access of 2 bytes and _mem2
does unaligned access.
When should I use which?
See Question&Answers more detail:os