That means that words will be 4-byte aligned, halfwords will be 2-byte aligned, and bytes don't have to be aligned at all.
这意味着字将是4字节对齐的,半字将是2字节对齐的,而字节则不需要对齐。
However, this new code now assumes that the starting address is 16-byte aligned, and also that it has enough padding on the end that the next data element in memory is also 16-byte aligned.
然而,这段新代码假定起始地址是按照16字节对齐的,并且末尾也有足够的填充位,因此内存中下一个数据元素也是16字节对齐的。
The memory allocator must give you a 16-byte aligned block of space, because, in general, memory allocation must provide suitable alignment so that the memory can be used for any purpose.
内存分配器必须给你一个16字节对齐块的空间,因为,在一般情况下,内存分配必须提供适当的对齐,内存可用于任何目的。
应用推荐