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.

CCS怎么保留没使用的段?



现在我的工程里定义了一些全局的变量到一个段里通过#pragma。 但是这些变量我没有显式的去调用,而我是通过段的起始和结束地址去解析里面的值然后再使用。

我现在遇到的问题是当编译后,这些全局变量被编译器优化掉了,我把ccs5.4的优化全关了也没用,不知道这有什么办法没?