MDK for ARM (Keil) compiled information

Source: Internet
Author: User

Article transferred from http://blog.csdn.net/gasbi/article/details/6186312

When we compile our code using Keil, the Build Output window below appears:
Program size:code=49220 ro-data=7060 rw-data=264 zi-data=4584

Code: is the amount of space that is consumed
Ro-data : Is read only, the size of the ReadOnly constant (such as const type)
Rw-data: Is read write, initialized or initialized with a value that is not 0 of the size of a readable variable
zi-data : The size of a read-write variable that is Zero Initialize, has no initialization, or has an initialized value of 0

If a variable is initialized to 0, the variable is treated in the same way as an uninitialized Zi in the region.
And in an ARM C program, all uninitialized variables are automatically initialized to 0.

In short, when writing code:
FLASH: Code + ro-data + rw-data
At run time:
RAM: Rw-data + zi-data
(This does not contain stack space ~)

MDK for ARM (Keil) compiled information

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.