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

code reduce

Hi All

I'm writing a software for 8 bit architecture using uvision 2. But when I try to compile my project using uvision2 it gives the following error

*** ERROR L107: ADDRESS SPACE OVERFLOW
.
.
.
Program Size: data=171.7 xdata=15942 code=65617
 

my target system has only 64KB code space it seems overflow.

How can I reduce code size for this application.

I'm using Code Optimisation Level 9 from uvision2.

any idea

Parents
  • I wouldn't be surprised if the new directive issues a warning when it removes code?

    Nope - no warning. IF you specify this directive, the linker assumes you know what you're doing.

    You do, however, get a nice listing of all the memory you just saved.

    * * * * * * * * *   R E M O V E D     S E G M E N T S   * * * * * * * *
       *DEL*:           000020H   BYTE   UNIT     CODE           ?PR?_UNUSEDFUNC?MAIN
       *DEL*:           00000AH   BYTE   UNIT     DATA           ?DT?_UNUSEDFUNC?MAIN
    

    Jon

Reply
  • I wouldn't be surprised if the new directive issues a warning when it removes code?

    Nope - no warning. IF you specify this directive, the linker assumes you know what you're doing.

    You do, however, get a nice listing of all the memory you just saved.

    * * * * * * * * *   R E M O V E D     S E G M E N T S   * * * * * * * *
       *DEL*:           000020H   BYTE   UNIT     CODE           ?PR?_UNUSEDFUNC?MAIN
       *DEL*:           00000AH   BYTE   UNIT     DATA           ?DT?_UNUSEDFUNC?MAIN
    

    Jon

Children
No data