The meaning of program size:code=x ro-data=x rw-data=x zi-data=x

Source: Internet
Author: User

The meaning of program size:code=x ro-data=x rw-data=x zi-data=x

Code: The size of the flash the program occupies, stored in flash.

Ro-data (read-only data): Read-only-data, program-defined constants, such as const, stored in Flash.

Rw-data (Readable and writable data with initial value requirements):
Read-write-data, a variable that has been initialized, is stored in flash. Rw-data is copied from flash to SRAM when initialized.

Zi-data:zero-init-data, a writable variable that has not been initialized, is stored in an SRAM. Zi-data will not be counted as code because it will not be initialized.

ROM (Flash) size = Code + Ro-data + rw-data;
RAM size = Rw-data + zi-data
In short, it is the space occupied in flash when burning is written: Code+ro data+rw Data
When the program is running, the space used in the chip's internal RAM is: RW data + ZI data

=============================================================================

Total RO  size (Code + RO data)                56284 (54.96kb[Note: 54.96kB = 56284/1024kb], hereinafter) Total
RW  size (rw Data + ZI Da TA)              7424 (7.25kB) Total
ROM Size (Code + RO data + RW data)      56456 (55.13kB)

=============================================================================

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.