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.

[参考译文] TMS320F28388D:关于编译器设置中的 fpu32标志

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/976693/tms320f28388d-regarding-fpu32-flags-in-compiler-settings

器件型号:TMS320F28388D

您好!

我将 F28388D 控制卡与 CCS 版本10.1.1.00004的编译器版本 TI v18.1.3.LTS 配合使用。 使用处理器选项,例如:

1)特定的浮点支持(--float_support):fpu32

2)已禁用指定 TMU 支持并指定 VCU 支持和 CLA 支持

使用编译器标志,如 :

1)--float_operations_allowed=32

我的问题是上面设置的标志和选项,如果我没有提到 FLOAT32 数字字面量的后缀为 f,它是否仍然是双精度浮点格式?

请提供参考、我在哪里可以获得有关此方面的信息。 ?

谢谢、

山米尼

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

    [引用 USER="Yamini Thilaka"]如果我没有将后缀作为 FLOAT32 数字字面量的 f,它是否仍然是双精度浮点格式的拼写错误?

    简而言之、是的。  C 语言标准指定 double 是浮点常量的默认类型。 由于 C28x 开发人员通常要求 float 运算而不是 double因此支持-float_operations_allowed=32选项。  使用该选项时、编译器会在出现双精度运算(包括双精度型常量)时发出诊断。

    谢谢、此致、

    乔治