具体场景为:有两个C,一个是main.c,里面定义了inline functionA()和main函数,main函数调用functionA(),另一个是test.C,里面定义了functionB(),在main函数中functionA后调用functionB,则查看反汇编发现functionA是callp调用,而不是将其在main中展开,求解答关于CCS编译器对inline优化的原理,谢谢。
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.
具体场景为:有两个C,一个是main.c,里面定义了inline functionA()和main函数,main函数调用functionA(),另一个是test.C,里面定义了functionB(),在main函数中functionA后调用functionB,则查看反汇编发现functionA是callp调用,而不是将其在main中展开,求解答关于CCS编译器对inline优化的原理,谢谢。