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.

[参考译文] CC1312R:printf 浮点支持

Guru**** 2595770 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/980858/cc1312r-printf-floating-point-support

器件型号:CC1312R

是否可以禁用 printf 的浮点支持以减少堆栈使用?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jan、

    不、我们没有简单的方法来实现这一点。 您可以进入源文件并自行更改源代码、但我建议您非常小心并知道自己正在执行的操作。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Marie H.、

    经过长时间的搜索、我发现您错了、解决方案非常简单:它们是一个链接器标志--printf_support=nofloat。

    插入标志--printf_support=nofloat 后,我的应用程序的堆栈使用量会减少数百个字节。

    谢谢

    1月

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jan、

    感谢您发布解决方案。 我将修改我的上述帖子、以免使任何人感到困惑。