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.

[参考译文] 编译器/TMS320F2.8379万D:stdint.h (?)中未定义UINT8_t和INT8_t C99固定宽度整数类型

Guru**** 2394305 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/633757/compiler-tms320f28379d-uint8_t-and-int8_t-c99-fixed-width-integer-types-are-not-defined-in-stdint-h

部件号:TMS320F2.8379万D

工具/软件:TI C/C++编译器

为什么 在stdint.h中没有定义uint8_t和INT8_t?

//来自stdint.h ~/ti/ccsv7/tools/compiler/ti-CGT-2000_C2000_STS/include/<xmt-block0>2000 17.6 
/* 7.18 .1.1 精确宽度整数类型*/ #IF已定义(__TMS320C28XX_CLA__) typedef 短Int16_t; typedef无符号短uint16_t; typedef Int Int32_t; typedef无符号int UINT32_t; #else typedef Int Int16_t; typedef unsigned int uint16_t; typedef 长时Int32_t; typedef未签名的long UINT32_t; #endif

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    因为C28x没有任何8位类型。CHAR为16位。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    谢谢考古学家。

    32位体系结构通常定义8位类型,即使本机字大小大于8位。

    亲切,
    Graham
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    只有在没有太多时间罚分的情况下他们才能处理。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    这就是int_least8_t