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.

全局变量Relocaion overflow 的问题



本人用的ccs5,在编译一个比较大的工程时,complie通过,但是在link的时候出现了relocaion overflow的警告。提示说“relocaion from function XX to symble XX overflowed”。其中,symble 是一个单一的全局变量。在网上查解决方案说可以再build option 中选择 mem_model:far 或者使用far 、near 关键字对全局变量修饰。但在ccs5中没有找到修改mem_model的具体位置,使用far或者near关键字的时候编译器也没有反应(extern const 等关键字打出来会变红)。请问这里mem_model的对应编译选项在哪里修改,far或者near关键字应该如何使用?或者您还有什么别的办法?谢谢!