1万
6万
10万
管理员
p = malloc(100); p1 = malloc(300); for(i=0; i<100; i++) { p[i] = 0x55; }
使用道具 举报
8
136
160
初级会员
3
70
79
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, 2024-5-10 23:24 , Processed in 0.166714 second(s), 28 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.