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.

求助TMS320F28335中数据结构体是如何内存对齐的?有没有相关文档说明?



问一下大家,CCS中是如何对结构体进行内存对齐的,有没有相关的说明文档呢?

  • C28x是32位的处理器,支持的最小数据单元是16bit即一个字,因此,硬件上不支持按字节进行对齐,请查看编译器手册TMS320C28x Optimizing C_C++ Compiler Vx.y.z User Guide()第7.1.7章节说明如下:

    另外,可以支持的预处理指令(#pragma)也可以在同一个文档中搜索到,在6.9 Pragma Directives章节有详细介绍。