In this example, the structure s is aligned to an 8-byte boundary, and so is the s.var2 variable.
在这个示例中,结构s 以 8 个字节为单位进行对齐,s.var2变量同样也是如此。
The pre-requisite to deploy TXSeries applications as a Web services is to compile them with 8 byte boundary.
部署TXSeries应用程序作为Web服务的先决条件是使用8字节的边界进行编译。
This is critical, as the SPU can only load exactly 16 bytes at a time, aligned to exactly a 16-byte boundary.
这十分关键,因为SPU一次只能加载16字节,并对齐到16字节的边界。
Modern architectures (Pentium and newer) would prefer "long double" to be aligned to an 8 - or 16-byte boundary.
现代的体系架构(Pentium及更新的体系架构)更喜欢将“longdouble”按照8字节或16字节进行对齐。
To load a value which crosses a 16-byte boundary is even more difficult, as you would actually have to load it into two registers, shift them, and then mask and combine them.
要加载跨越16字节边界的值会十分困难,因为必须要将其存储到两个寄存器,进行移位然后再对它们进行掩码和组合。
As all objects start on an 8 byte boundary, and the size is divisible by 8, the bottom 3 bits are not used for the size; we use them for flags to indicate different states of the object.
因为所有对象都是从8字节边界开始,并且大小可以被8整除,所以底部的3位不用于表示大小;我们将其作为标志,用于表示对象的不同状态。
As all objects start on an 8 byte boundary, and the size is divisible by 8, the bottom 3 bits are not used for the size; we use them for flags to indicate different states of the object.
因为所有对象都是从8字节边界开始,并且大小可以被8整除,所以底部的3位不用于表示大小;我们将其作为标志,用于表示对象的不同状态。
应用推荐