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.

TMS320F280049C: 如何让编译器不把常量优化?

Part Number: TMS320F280049C


应用层记录版本号,供更新层调用,使用如下方式放入cmd定义好的90002地址段

但烧录后发现其被编译器优化了,因为应用层并没有调用过这个版本号,

如何才能让这个常量不被优化掉且不影响其他代码voliate试过了不好用,最新版的CCS