Hi, I am using c51 keil compiler with cygnal chip c8051C020. I find problem in initilise static variable. exp. main() { static unsigned char i =0 ; i++; } when i write this type of code & simulate it ,i find that i is not initilise to 0. Note:this is just example code & not the actual program i work. If any specify me the reasion it will help me lot. Regards, Pandurang S.
"If the external memory is configured before startup clear and ljmp ?C_START it will not be initialized." "My experience is that if it is configured before startup clear and ljmp ?C_START it will be initialized." Those statements appear to be in complete contradiction. What are you trying to say?