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.
Read the Manual about INIT.A51, what it does, and why you may need it.
hi, Thanks for reply. At present i worked with few project and never include the start.A51 & init.A51 file in my project, but never face this type of problem, which i am facing presently. What is reason for it. Regards, Pandurang S.