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.

Compiler/TMS320C6678: TI C6000 CGT 8.x uses LLVM internally?

Part Number: TMS320C6678

Tool/software: TI C/C++ Compiler

Hi,

When I'm using the CGT 8.1.x or 8.2.x, I can see in 'C6000 Compiler' -> 'Advanced Options' -> 'Predefined Symbols' tab of a CCS proejct properties, there are settings like 'LLVM Optimization Level' and 'Give Clang warning argument'.

Q1:Does that mean the CGT 8.x is using LLVM as backend?

Q2:What does the macro __TI_LLVM__ mean? I can see it defined somewhere like in stddef.h.

  • It seems to use clang (at least partially) as the frontend, as witnessed by the license information in the software manifest as well as the output of acpll6.exe:

    C:\> acpll6.exe
    
    No input file specified.
    TMS320C6x TI Clang C/C++ Parser         v8.1.3
    Tools Copyright (c) 1996-2015 Texas Instruments Incorporated
    
    [...]

  • canfoderiskii said:
    Q1:Does that mean the CGT 8.x is using LLVM as backend?

    No.

    canfoderiskii said:
    Q2:What does the macro __TI_LLVM__ mean? I can see it defined somewhere like in stddef.h.

    There is an undocumented experimental mode which uses clang as the parser.  These macros are useful only in combination with this mode.

    Thanks and regards,

    -George