Here is a code snippet that is bugging me off for a while:
#define size (20 * 1024) unsigned char data_base[size]; /*my application here*/ ......... ......... ......... .........
The global variable "data_base" as you can see is uninitialized. The executable size was 434KB. when this variable was initialized with "0" like this:
#define size (20 * 1024) unsigned char data_base[size] = "";
the executable size increased by nearly 20KB.
My compiler is diab[a PPC cross compiler]. I tried the same on TC, perhaps after editing the file, and observed that the code size with initialized goabal variables is larger than that with uninitialized global variables.
Can anyone tell me why does this happen?