like
Uchar Code table[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
And
Uchar ds1302[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
Can run, what's the difference between them?
C in the definition of the array is memory space, and code is the meaning of encoding, in the definition of encoding is directly allocated to the program space, compiled code occupies the program storage space rather than memory space.
In some cases, when the defined array contains more elements, the array will occupy a larger amount of storage space, rather than want to affect the memory, and put it into the coding space, to a certain extent, can save memory.
The code in Keil means that the defined variables are stored in the program memory, which is read-only, not writable, and is mainly used to save RAM, and the resources of the embedded system are limited.
C language compiled array of some add code some not add, what difference