if i am using AT89C2051 which has a 2k on-chip code memory, how will i know if my codes have exeeded it? does KEIL automatically pop error? in my application i do not intend using any external code memory & neither is hardware designed for it. what is the way to detect the same (i.e. if i have exeeded the on-chip code memory limit) ??? thank you.
If you specify the starting AND ending address of the CODE space to the linker, you will receive a linker error if you overflow the CODE space. For example:
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: CODE SEGMENT: ?PR?MAIN?HELLO LENGTH: 000028H
code char dummy [2048];
the CODE space entry in to the linker option helped me to sort my doubts/problems. thanx a lot.
Note that you can also just select the Use On-Chip ROM option in uVision2 to set the appropriate CODE space for the linker. Jon