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/TMS320C6747: can C99 compiler be used on PC other than TI DSP?

Part Number: TMS320C6747


Tool/software: TI C/C++ Compiler

Hi, 

I'have been coding all the time on DSP, using Compiler version V8.2.2.

But because it  takes longer in real time to dump out big arrays for debugging, it was decided to write and test the code in PC, use mingw-w64, but there is some problem with that

as i could see some inconsistency with the compiler between the mingw-w64, C99 and the TI C99 version.

Is there a way that I could use the TI version of C99 on the PC?

  • NancyJ said:
    as i could see some inconsistency with the compiler between the mingw-w64, C99 and the TI C99 version.

    Please give me 1 or 2 specific examples of this inconsistency.

    Thanks and regards,

    -George

  • c99 in the PC complains about NULL being used against zero instead of zero, since NULL represents void pointer,
    Where as c99 in TI, there is no warning, since its been defined as 0, instead of void pointers as in other case.
    in order for us to make the PC look similar to the TI DSP, the compiler has to match in generating the output.
    Inclusive of the warning, hence it would be good, if TI compiler can be used in PC, so the generated output is in sync.
  • The definition of the NULL macro is not strictly prescribed by the standard.  So, it is not surprising they would be different.  I'm a little surprised this difference causes a problem.  Perhaps you can disable the diagnostic you see when building on the PC?  

    This FAQ on NULL (not from TI) may be helpful.

    This post may be too vague.  If so, then please include a code example, including the diagnostics, in your next post.  Generally speaking, the more specific you are, the better the response will be.

    Thanks and regards,

    -George

  • Hi George,
    The pc compiler, had problem in using pointer reference, where as CCS did not complain about it when it was running in real time.
    The questions is, can i use the CCS compiler to create a PC executable, instead of using Ming-w64?
  • NancyJ said:
    can i use the CCS compiler to create a PC executable

    No.  Your CCS project is for a TMS320C6747 device.  Therefore, it uses the C6000 compiler.  This compiler executes on your PC, just like the Ming-w64 compiler.  But it produces code which runs on a C674x device, and not a PC.

    Thanks and regards,

    -George