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
  • You have an overflow in the data space as well as the code size.

    If you have any routines in your source that are not called, you need to get them out by one means or another. The Keil linker cannot break up a single segment (which corresponds to a .c file) and remove the unused routines. This is not just a problem for code space, but for the compile-time stack overlay analysis as well.

    If you're porting this software from another architecture, you may need to work on the code somewhat to make it more 8-bit-friendly.

Reply
  • You have an overflow in the data space as well as the code size.

    If you have any routines in your source that are not called, you need to get them out by one means or another. The Keil linker cannot break up a single segment (which corresponds to a .c file) and remove the unused routines. This is not just a problem for code space, but for the compile-time stack overlay analysis as well.

    If you're porting this software from another architecture, you may need to work on the code somewhat to make it more 8-bit-friendly.

Children
More questions in this forum