摘要:当一个较少字节对齐类型的指针强转为一个较多字节对齐的指针类型时,这样有些时候会产生问题。 在arm的平台上,这个问题比较明显,在x86平台上运行后没这个问题typdef struct{int addr;int rdda;}Test_t;int main(){short int a;short ...
阅读全文
posted @ 2014-05-27 22:50
posted @ 2014-05-27 22:50
posted @ 2014-05-16 09:25