In Keil, program size: the meaning of code ro-data RW-data Zi-Data

Source: Internet
Author: User

In KeilCompileAfter the project is successful, the following bulid ouput window willOutputThe following is a piece of information:
Program size: code = 6320 ro-Data = 4864 RW-Data = 44 Zi-Data = 1636

Meaning:
Code: YesProgramMediumCodeByte size
Ro-data: the command and constant size defined in the Program (read only)
RW-data: variable size initialized in the Program (for personal understanding, ": read/write)
Zi-data: the size of uninitialized variables in the Program (personal understanding: Zero initialize)

 

 

Rom (flash) size = code + RO-Data + RW-data;

Ram size = RW-Data + Zi-Data

You can use. Map to view the flash and RAM used.

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.