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

address space overflow AGAIN

When I compile my program with my MasterLoop() called from main, it compiles fine with the following:

Program Size: data=140.1 xdata=6081 code=20964

When I comment out the entirey of my MasterLoop() and just return 0, I get tons of overlay warnings and address space overflow errors. The data portion becomes huge and I was wondering why:

Program Size: data=258.1 xdata=6302 code=18800

Parents
  • This is probably happening because MasterLoop() calls other functions which are no longer called from anywhere in the program once the body of MasterLoop() has been commented out. The linker cannot then include these functions in the call tree it builds to work out which local variables can be overlaid, so when the functions are linked their local variables are all given their own address space.

    Stefan

Reply
  • This is probably happening because MasterLoop() calls other functions which are no longer called from anywhere in the program once the body of MasterLoop() has been commented out. The linker cannot then include these functions in the call tree it builds to work out which local variables can be overlaid, so when the functions are linked their local variables are all given their own address space.

    Stefan

Children
No data