大家好,C2000成员TMS320F28335在CCS3.3下是2字节对齐的,能不能改为1字节对齐?怎么改呢?
再者,有没有在F28335下成功移植了ucos+lwip的呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好,C2000成员TMS320F28335在CCS3.3下是2字节对齐的,能不能改为1字节对齐?怎么改呢?
再者,有没有在F28335下成功移植了ucos+lwip的呢?
在C2000芯片中最低的地址单位就是16bit,所以char就是16bit长,实际使用中只使用其的低8位,高8位就浪费了。由于编译器本身直接支持这样使用所以并不会有不方便的地方。
在大规模存储字符数据时,有时候会不想浪费这高八位,这会比较麻烦,可以用_byte()这类编译器内部函数。
具体请看,下面文档的6.4章: