FAQ

FAQ

How to view code size and SRAM usage in the Keil development environment?  Issue Date:2015-07-09

After programming, Keil will display the following message:

Program Size: Code=86496 RO-data=9064 RW-data=1452 ZI-data=16116

The parameters have the following meanings:

Code

The space occupied by the code.

RO-data

The read-only constant, e.g. const.

RW-data (Read Write)

The initialized read-write variables.

ZI-data (Zero Initialize)

The uninitialized read-write variables. ZI-data is not regarded as code because it is not initialized.

Note: The unit is Byte.

 

When programming, the occupied space in Flash is: Code+(RO-data)+(RW-data)

When a program is running, the space used for the internal SRAM inside the chip is: (RW-data)+(ZI-data)

Products: Microcontrollers ,Arm Cortex-M0 MCUs ,M051 Base Series ,M0518 Series ,M0519 Series ,Mini51 Base Series ,Nano100/102 Base Series ,Nano110/112 LCD Series ,Nano120 USB Series ,Nano130 Advanced Series ,NUC029 Series ,NUC100/200 Advanced Series ,NUC120/122/123/220 USB Series ,NUC130/230 CAN Series ,NUC131/NUC1311 CAN Series ,NUC140/240 Connectivity Series ,Arm Cortex-M4 MCUs ,M451 Base Series ,M451M Series ,M452 USB Series ,M453 CAN Series ,NUC442/472 Series ,NUC505 Series
Applications:
Function: Software and Tools,Development-Environment,Keil