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.

TDA4VM: C66X核将函数放入指定section,报warning,功能不可用。

Part Number: TDA4VM


将函数放入指定的section(通过__attribute__((section(".nearsram_code")))指定,section定位为L1SRAM的范围,L1PSRAM: ORIGIN = 0x00E00000 LENGTH = 0x00008000),部分函数报错。

比如有函数A调用函数B,函数A指定section之后,无warning,功能正常,函数B也放入section,报warning如下,且函数功能不正常。 请帮助解决下。

多谢!

warning: Possible codesize or performance degradation. Section
".nearsram_code:PLLCalc:pll.oe66" has calls to rts routines, but rts is
placed out of range from call site at 0xe002c4, or in a different section.
To optimize codesize, either 1) place rts closer to call site, or 2) place
rts in same section, or 3) compile with --disable_push_pop.
warning: Possible codesize or performance degradation. Section
".nearsram_code:PLLCalc:pll.oe66" has calls to rts routines, but rts is
placed out of range from call site at 0xe00000, or in a different section.
To optimize codesize, either 1) place rts closer to call site, or 2) place
rts in same section, or 3) compile with --disable_push_pop.