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

I have a program written for a Philips P87C668 and it compiles fine with an old (1993) Franklin compiler. I don't have access to the compiler so I'm trying to get it to compile on Keil. All but 3-routines are written in C. Well, I got it to compile, but the linker throws up all over the place.
For 3 of the 7-files that make up my program I get error L107: ADDRESS SPACE OVERFLOW
I've tried different memory models to no avail. Where do you suggest I look for the problem?

  • Where do you suggest I look for the problem?

    defaults

    The default (or the code or whatever) used to be that overlaying happened with the defaults. With the later versions, with defaults, there is no overlaying (at least not using commandline.
    If you do not have optimization at 2 (or higher) there is no variable overlay.

    Erik

  • "Where do you suggest I look for the problem?"

    For a start, look at the complete Linker message - which address space(s) is/are overflowing?

    Then look at the MAP files from both Franklin & Keil to see where all the extra memory usage is actually coming from.

    As Erik says, it could be just a difference in default options...

  • I just checked on some of our very old projects that use Franklin (the only version we keep is 3.96).

    All of the projects specifically declare OT(5) or lower. Because they all actually say OT(x), I would suspect that we had a similar issue to yours sometime in the past.