它是否能够在STM32微控制器上的应用程序中调整堆尺寸?

发布于 2025-01-25 20:44:42 字数 176 浏览 2 评论 0原文

在我的程序中,我使用了很多malloc(),它的目标是具有不同的RAM尺寸的芯片(当然是相同的外围设备和足迹),所以我想在我的C代码应用程序中设置堆大小 ,在第一次致电malloc()之前。

在编译之前,请在IDE中设置堆或堆栈大小。我四处搜寻,什么也没发现。

那是可能的吗?

In my program, I'm using a lot of malloc(), and it's targeting chips with different RAM sizes(same peripherals and footprint of course), so I want to set HEAP size in my c code application, before the first call to malloc().

Setting HEAP or STACK size in IDE before compile is not I wanted. I searched all around and found nothing.

So, is that possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文