This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Access a function using address

Since the c51 compiler does not support the recursive call of a function is there any way to find out on which address location the function which is to be called as a recursive is located?

That is, is there any way to implement the recursive call funtion in a similar way of a software reset i.e just call like this ,

((void (code *) (void)) 0x0000) ();

Parents
  • The function to call as recursive i declared it as reentrant.

    Then i added the startup.a51 to my project and in that file i changed the setting of,

        XBPSTACK EQU 1
    

    Then saved the file and compiled but then to i get the warning L13: Recursive call to segment.

    Do i need to set some other thing to avoid this warning message?

Reply
  • The function to call as recursive i declared it as reentrant.

    Then i added the startup.a51 to my project and in that file i changed the setting of,

        XBPSTACK EQU 1
    

    Then saved the file and compiled but then to i get the warning L13: Recursive call to segment.

    Do i need to set some other thing to avoid this warning message?

Children