1万
7万
11万
管理员
p = malloc(100); p1 = malloc(300); for(i=0; i<100; i++) { p[i] = 0x55; }
使用道具 举报
9
156
183
初级会员
4
126
138
tcs_stm32 发表于 2023-5-3 10:19 free不会清除申请内存的数据, 这个要看自带的malloc是怎么管理这片内存的, 分配了怎么做标记
turnip 发表于 2023-5-3 10:23 armcc he armclang在 stdlib.h提供了__heapstats来查询heap情况
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|硬汉嵌入式论坛
GMT+8, 2025-8-14 00:20 , Processed in 0.041740 second(s), 27 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.