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.

MSP430 的 double 类型结构



器件是MSP430F4XXX,开发环境是CCS5.1,想做一些数据处理,不知道430的double类型的长度,还有结构,求解!

  • hongyu chen,

    看看在新建工程时出现的那个页面上你选用的Compiler版本号是多少?然后看看对应生成的是COFF ABI.,还是EABI?然后在TI官网上找到文档“MSP430 Optimizing C/C++ Compiler v 4.2 User's Guide”,我这个用的是Compiler V4.2,查找data type,然后就会看到类似于下列的表格,其中会有对各种数据类型长度的说明。

    一般而言,COFF ABI 对应的double是32bits,EABI是64bits.

    BR,

    Lina