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.

TMS320C203 Compiler and volatile variables

Other Parts Discussed in Thread: TMS320C203

Hello,

for an old project for a TMS320C203 we switched from CGT v6.60 to v7.0 and found that the optimizations of the compiler are a little bit different.

Indeed, on v6.60 compiler there is no need of the volatile keyword whereas the v7.0 requires it.

The solution could be to deactivate the "-O2" option we use, but for memory space reasons, we can't. The sw must be compiled with "-O2" option.

Since the amount of code to check and modify is quite important, we would prefer to avoid doing such manual update of the software.

Does someone have an idea about an option available on this old compiler to remove the "not volatile" optimization only??

Thanks for all ideas!

Kind regards,

Nicolas.

  • nicolas v. said:
    Indeed, on v6.60 compiler there is no need of the volatile keyword whereas the v7.0 requires it.

    That's incorrect.  It is likely that you always needed the volatile.  But the optimization of version 6.60 didn't uncover the error.

    nicolas v. said:
    Does someone have an idea about an option available on this old compiler to remove the "not volatile" optimization only??

    Unfortunately, there is no such option.

    Why are you changing compiler versions?  Why not stay with the older compiler?

    Thanks and regards,

    -George

  • Hello George,

    thanks for your reply.

    I have changed of compiler version because I had to change the development environment for obsolescence reasons. I switched from a SOLARIS (with v6.60 CGT) to a WinXP PC (with v7.0 CGT).

    For Windows PC, the V7.0 is the oldest version of the CGT that I have been able to found.

    Kind regards,

    Nicolas.

     

  • Out of curiosity, I tried out the version 6.60 compiler built for Windows machines of that time.  Bad news.  It doesn't work under 64-bit Windows 7.

    Thanks and regards,

    -George

  • My "new" environment is based on Windows XP PC, so maybe your 6.60 version built for Windows could work for me.
    Would it be possible to get this version?

    Thanks,
    Nicolas.