Hello all, i have DECT handset based on 8051 controller.. and i also have an application software running on it.
I am planning to run this software in debug mode in Keil IDE itself, so that i can run some keypad simulators interfaced through AGSI driver interface.
SO i commented a funtion call which internally declares some local variables. then the linker gives me this error.. if i uncomment the function call ... every thing works fine...
i am using SMALL memory model...
can anyone please suggest me the reason for it.
error is
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: _DATA_GROUP_ LENGTH: 000050H
thanks, supreet
Thanks for the reply,
i will give an example of my problem,
Main() { dummy_func1(); //dummy_func2(); dummy_func3(); }
dummy_func2() { unsigned char a; unsigned int b; /* some code here */ }
So if i do something like this then the linker error comes.. if i remove the commenting of function call dummy_func2(), then everything works fine..
The question i am asking here is, if i am not calling the function dummy_func2() then i am actually not declaring two variables , so it actually has to reduce the DATA memory occupied...
But exactly opposite thing happens, when i call the function and two variables are decalred the Overflow error doesnt come...
Thanks, Supreet
PS: MY application is not as simple, i just gave an example of the problem :)