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.

CCSTUDIO: Is ccs3.3 default C language compilation standard C89?

Part Number: CCSTUDIO

Hi, support team

My customer has the questions as follow:

1. Is ccs3.3 default C language compilation standard C89?

2. I developed the DSP in the CS3.3 development environment using the C language,

    but the syntax tip: error: declaration may not appear after executable statement in block.

    I know this is a syntax error caused by the C89 standard,

   so I want to configure CCS3.3 to C99 standard.

   How to configure CCS3.3 to C99 standard?

  • Hello!

    This question is related with compiler rather than CCS version, though CCS version may limit usable compilers. For instance, C6000 compiler used with CCS v.3.3 was from v.6.x family. To the best of my knowledge, it implements C89 standard. Can't say anything about other compilers.

    Intermixing declarations and statements is allowed in C++. If one treats C files as C++ with -fg option (build options, parser page, can be applied as per project, so per file), at least error could be demoted. However, I am not sure doing this way would not introduce any other issue. It would be nice if you  try and share your findings.

  • As rrlagic says, this all depends on the version of the compiler, and not the version of CCS.  Just for now, I presume you use a relatively recent version of the C6000 compiler.

    Is ccs3.3 default C language compilation standard C89?

    Please search the C6000 compiler manual for the sub-chapter titled Characteristics of TMS320C6000 C.  It discusses how the compiler supports both the C89 and C99 standards, including relevant command line options.

    Please let me know if this suggestion resolves the problem.

    Thanks and regards,

    -George