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

Error L107 when debugging

The program before I commented out a section complied and linked OK.

When I comment out pieces of the code I get the error

ERROR L107: ADDRESS SPACE OVERFLOW

Why?
and
How can I stop the error without a lot of work pulling apart the code just to satisfy the linker?

  • Did you comment out some function calls? If so, did you also get a lot of "uncalled functions, ignored for overlay processing" messages?

    If you take out a function in the middle of your call tree, all the sub-functions might then become uncalled. In that case, the overlay processing has no choice but to treat them each as the root of a new call tree. Local variables and parameters that once could be fit into the internal memory (data space) when they could be overlaid might not fit if they can't be overlaid.

    One way to patch around the problem would be to use the OVERLAY directive to the linker to tell it what the call tree should look like, by adding the sub-functions used by the eliminated code to the next higher level function.