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?
Read-Only
Author Drew Davis
Posted 9-Sep-2003 21:27 GMT
Toolset C51
RE: Error L107 when debugging
Drew Davis
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.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.