also about RECURSIVE CALL TO FUNCTION

When I attempt to link my project, the linker reports the following diagnostic:

*** WARNING L13: RECURSIVE CALL TO FUNCTION CALLED: _?NETIP_TXPKTDATAGRAM/NET_IP CALLER: _?NETIP_TXPKT/NET_IP

please tell me how to resolve it,thanks a lot!

Parents
  • Due to the peculiarities of the 8051 architecture, recursive functions are generally a bad idea.

    Recursive functions, by definition, need to be reentrant. C51 can create reentrant functions, but that means opening a can of worms that's usually best left unopened. Refer to the compiler manual about the "reentrant" keyword.

    Try to change your algorithm so it works without recursion.

Reply
  • Due to the peculiarities of the 8051 architecture, recursive functions are generally a bad idea.

    Recursive functions, by definition, need to be reentrant. C51 can create reentrant functions, but that means opening a can of worms that's usually best left unopened. Refer to the compiler manual about the "reentrant" keyword.

    Try to change your algorithm so it works without recursion.

Children
More questions in this forum