I have following codes: void fun1(unsigned char *msg); void fun2() { fun1("ssss"); } void fun3() { } code void (*func_array[])()={fun2, fun3}; void fun1( unsigned char *msg) { (*func_array[1])(); } void main() { (*fun_array[0])(); } when compiling, i got the following message *** WARNING L13: RECURSIVE CALL TO SEGMENT SEGMENT: ?CO?HELLO Could you please tell me how to solve it? Thanks a lot!
http://www.keil.com/forum/tips.asp http://www.keil.com/appnotes/docs/apnt_129.asp http://www.keil.com/support/docs/210.htm http://www.keil.com/support/docs/806.htm
I think my situation is a little different from what those APP discuss.
PROGRAM RECURSIONS REMOVED FROM CALL TREE ========================================= +--> ?CO?HELLO | | ?PR?FUN2?HELLO <--+ ?PR?_FUN1?HELLO