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.

C99 for C6000

Genius 5785 points

Hello,

I want to use C99 language on C6748. Which compiler version do you recommend for C99?

It looks like CGTv7.5 supports C99.
processors.wiki.ti.com/.../C99_Support_in_TI_Compilers
processors.wiki.ti.com/.../C99_Extensions_Supported_in_C89_Mode_in_TI_Compilers

But I can't find active information of CGTv7.5 (and v7.6).
processors.wiki.ti.com/.../Production_Compiler_Releases
software-dl.ti.com/.../download.htm

Regards,
Kazu

  • While there were plans for C6000 compiler releases numbered 7.5.x, that did not happen.  The first release after 7.4.x is 8.0.x.  You should probably use version 8.1.x.  In theory you could use 8.0.x, but you may as well upgrade to the latest version.  All that said, there are some things to consider.  The following snippet is from the readme.txt file that comes with version 8.1.x.  

    -------------------------------------------------------------------------------
    2.3) Guidance and Recommended Usage
    -------------------------------------------------------------------------------
    
    The C6000 CGT v8.1 is a *NEW* compiler:
    * v8.1 will support C6400+, C6740, and C6600 in ELF EABI mode only
    * v7.4.x will continue to support all C6000 processor variants in ELF EABI
      or COFF ABI mode
    * C++ object code generated by compilers older than v8.0 is *NOT* compatible
      with v8.1 RTS object libraries
    
    You should use v8.1 if you are:
    * Developing new applications for OpenCL, OpenMP, or HPC-MCSDK
    * Developing new applications that utilize new compiler features that are
      available only in v8.0 and beyond (Native Vector Types, for example)
    
    You should use v7.4.x if you are:
    * Maintaining an existing code base that you don't want or need to transition
      to a new compiler
    * Developing new applications or maintaining existing applications that use
      the COFF ABI
    * Developing new applications or maintaining existing applications on C6200,
      C6400, C6700, C6700+, or Tesla.

    You can obtain version 8.1.x from here.

    Thanks and regards,

    -George

  • Hello George,

    George Mock said:

    While there were plans for C6000 compiler releases numbered 7.5.x, that did not happen.  The first release after 7.4.x is 8.0.x.  You should probably use version 8.1.x.  In theory you could use 8.0.x, but you may as well upgrade to the latest version.  All that said, there are some things to consider.

    Thank you for your quick reply. I have a question about v8.1.x.

    There is not a manual of v8.1 compiler in the follwoing directory even though I can see SPRU187V.pdf of v7.6 compiler.
    C:\ti\ccsv6\tools\compiler\ti-cgt-c6000_8.1.0\doc

    Should I see an online manual as below?
    processors.wiki.ti.com/.../TI_Compiler_Information

    I clicked the following manual and section. Does v8.1.x really support --c99 option?
    C6000 C/C++ Optimizing Compiler v8.x User's Guide (pdf)
    7.13 Changing the ANSI/ISO C/C++ Language Mode

    Regards,
    Kazu

  • This link takes you to the latest revision of the C6000 compiler manual.  At this time, it is the manual for the 8.1.x compiler.  

    Kazu Kon said:
    Does v8.1.x really support --c99 option?

    Yes.  Please see the section of the manual titled Enabling C99 Mode.

    Thanks and regards,

    -George