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: Regarding fpu32 flags in Compiler settings

Part Number: TMS320F28388D

Hi,

I am using F28388D Control card with Compiler version TI v18.1.3.LTS with CCS version 10.1.1.00004 . With Processor options such as :

1) Specifiy floating point support (--float_support) : fpu32

2) Disabled Specify TMU support and Specify VCU support and CLA support

With Compiler Flags such as  :

1) --float_operations_allowed=32

My question is with the flags and options set as above, if I dont mention suffix as f for FLOAT32 numeric literals, does it still typecasts to double precision floating point format ?.

Please provide reference where I do I get information about this.. ?

Thanks,

Yamini

  • Yamini Thilaka said:
    if I dont mention suffix as f for FLOAT32 numeric literals, does it still typecasts to double precision floating point format ?

    In short, yes.  The C language standard specifies that double is the default type of floating point constants. Because it is a common request for C28x developers to prefer float operations over double, the option --float_operations_allowed=32 is supported.  When used, this option causes the compiler to issue a diagnostic anytime a double operation, including a constant of type double, is seen.

    Thanks and regards,

    -George