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.

在全局定义char a[1024],并对其初始化为1024字节的a,但是为什么.map文件里flash没有增加1024字节,只增加了16字节?我填充的1024字节的a,它占用的空间在哪里?

Other Parts Discussed in Thread: CC2640R2F

在全局定义char a[1024],并对其初始化为1024字节的a,但是为什么flash没有增加1024字节,只增加了16字节?

没有执行以下代码时,flash已使用5ad2,执行以下代码后,flash已使用5ae2,只增加了16字节,这是为什么呀?SRAM的使用情况执行前后没有任何变化。

    char a[1024];
    memset(a,'a',sizeof(a));

我填充的1024字节的a,它占用的空间在哪里?

右边是执行前,左边是 char a[1024]; memset(a,'a',sizeof(a));代码执行后