Hi all,
I am working on LPC1768 controller of Cortex-M3 series and using Keil IDE compiler,I have observed that RW-data and ZI-data sizes both are increasing when i am going to declare gloabal variables with storage class of automatic and initializing them with zero value, according to the concept when we are initialize variable with zero it will allocated in ZI-region not in RW-data region.
Please give the clarification on this.
Thanks in advance Goutham Kumar.
Can a gloabal variable have a storage class of automatic?
There are a number of pages in the manual that discuss rules, such as:
www.keil.com/.../armcc_chr1359124903636.htm
Since you're initialising the variable with zero, it doesn't matter (from the viewpoint of functionality) whether it goes into RW-data or ZI-data. Both would cause the variable to be initialised to zero.
Thanks for information.