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 issue with CCS v6.1.3 C Compiler



We seem to have an issue with the CCS v6.1.3 C-language compiler.  We are working on a DO-178B program so we need to use that version of compiler (6.1.3).  We removed a statement, recompiled, and a different statement in another function seemed to be removed, such that another system function was inadvertently disabled.  As an investigation we tried the same thing using the v6.2 C compiler and the bug did not recur.  The function was not inadvertently disabled when we used the v6.2 compiler.  Has anyone seen this bug on the TI CCS v6.1.3 compiler?  thanks

  • There is not enough information here to recognize the bug you describe.  In nearly all cases such as this, we need a test case we can build which allows us to see the behavior ourselves.  It usually does not need to run.  We can typically see the problem by inspecting the assembly output of the compiler.  So submitting a test case would be ideal.  I presume both functions are in the same source file.  A test case would be the preprocessed form of that source file, plus the exact options used to build it.  Add comments to show which statement you remove, and which statement unexpectedly changes as a result.

    As we look at that test case, here is a workaround to consider ... I think lowering the level of optimization (set with option --opt_level) might avoid the problem.

    Thanks and regards,

    -George