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

C51 question

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

Parents
  • 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
    
    
    

Reply
  • 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
    
    
    

Children
No data