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
There is a whole chapter in the C51 manual on writing optimum code. It has been discussed here many times - do a 'Search' See also http://www.8052.com/forum/read.phtml?id=71821 http://www.keil.com/forum/docs/thread5234.asp
the post (right now next to yours) "Understand The 8051's Capabilities and C51 Assembly Output." basically show why so many experience "code" overflows. If you (I am not saying that you are - not a flame) are applying "PC techniques" a bit of recode with forethought will dramatically reduce your code size. Even if you have coded with the '51 in mind, you can often find places where you can change a small thing and achieve code size savings. The optimizer will give you size or speed, manual codeing with forethought gives you both. Erik