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

Uncalled Segment/DATA overflow


Does anyone know how to avoid a data segment overflow caused by the local data for uncalled functions being permanently allocated? Better still to prevent such functions being included in the final output at all?

I am using Keil C51 V6.

Thanks
Simon Fisher

Parents
  • Are they really not called, or just calls that the linker can't "See;" eg, Interrupt Service Routines?

    If they really aren't called, why are you building them!?

    Could you put your locals in PDATA or XDATA?

    Take a look at App Note 129, "Function Pointers in C51" and knowledge base article, "C51: Problems with function pointers overwriting variables"
    http://www.keil.com/support/docs/210.htm
    They include some examples on how to manually adjust the overlaying yourself

Reply
  • Are they really not called, or just calls that the linker can't "See;" eg, Interrupt Service Routines?

    If they really aren't called, why are you building them!?

    Could you put your locals in PDATA or XDATA?

    Take a look at App Note 129, "Function Pointers in C51" and knowledge base article, "C51: Problems with function pointers overwriting variables"
    http://www.keil.com/support/docs/210.htm
    They include some examples on how to manually adjust the overlaying yourself

Children