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.

关于F2812的cmd文件

2812_RAM_lnk.cmd中有这么一段:

#ifdef __TI_COMPILER_VERSION__
#if __TI_COMPILER_VERSION__ >= 15009000
.TI.ramfunc : {} > PRAMH0, PAGE = 0
#else
ramfuncs : > PRAMH0 PAGE = 0
#endif
#endif

但是编译之后会弹出警告:“creating output section “ramfuncs” without SECTION specification”。查看map文件,发现ramfuncs段被分配到了程序空间RAMM0中,索性把上面那一段直接改成ramfuncs         : > PRAMH0       PAGE = 0,这时警告消失了,ramfuncs也被分配到了PRAMH0中。那么问题来了,为啥?难道是__TI_COMPILER_VERSION__不存在吗?