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.

Link的时候如何保留编译器认为不使用的代码段到.out?



Link的时候如何保留编译器认为不使用的代码段到.out?

原来低版本编译器编译时,不使用的代码段也会被链接到Out文件中,现在换新的CCS5.5和sysbios6为什么会将编译器认为不使用的代码段直接优化掉?

请问什么编译选项可以保留不使用代码段?