Hey guys, why would I get the following errors if i comment out a piece of code? the code is in my main loop.
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: ?DT?PROCESS_TEL?PROCESS LENGTH: 0009H *** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: ?DT?_ASC_TO_BCD?MISC LENGTH: 0008H
Thanx :)
Xarion
when i have (temporarily during development) uncalled functions, I use this 'trick'
skipbit = 0; if (skipbit) ( uncalled_function(); }
Erik
Not sure what the advantage of that would be over, say:
#if 0 uncalled_function(); #endif
Or even
#if DO_NOT_CALL uncalled_function(); #endif
Simply uncheck the 'Include in build' option for the relevant file(s).
Can also be applied to Groups.
If, like Erik, you don't use uVision, you could still build a similar effect into your preferred build system (.BAT file, or whatever)...
Oops - now I see it!!
My examples should be:
#if 0 // Definition of the function void uncalled_function( void ) { // Your code here } #endif : : #if 0 uncalled_function(); #endif
and the advantage is then obvious.
Taking it a step further:
#if DO_NOT_CALL_THIS_FUNCTION // Definition of the function void this_function( void ) { // Your code here } #endif : : #if DO_NOT_CALL_THIS_FUNCTION this_function(); #endif