Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/09/04 12:13
Read: times


 
#82824 - Overflow
Responding to: ???'s previous message
i tried it alot and the compiler keeps telling about some data overflow.

Any processor has only a finite amount of memory; therefore, it can accomodate only a finite number of variables.
If you define more variables than can be accomodated in the available memory, you will get this Overflow error.

There are 3 possible solutions:
1. Add more memory;
2. Use less variables;
3. Re-work your code to use the available memory more efficiently.

Remember, the 8052 has several different memory areas: DATA, IDATA, XDATA, etc; if you overflow one, you may be able to move some variables to another...


List of 19 messages in thread
TopicAuthorDate
89s52 function sharing.            01/01/70 00:00      
   Try This            01/01/70 00:00      
      emphasis            01/01/70 00:00      
         an idea...            01/01/70 00:00      
            Andy, I tried it            01/01/70 00:00      
               Jolly good!            01/01/70 00:00      
            Error            01/01/70 00:00      
               You need to work on it            01/01/70 00:00      
   reentrant ?            01/01/70 00:00      
      reentrant            01/01/70 00:00      
   non-reentrant            01/01/70 00:00      
   Wow            01/01/70 00:00      
   varaible sharing?            01/01/70 00:00      
      Variable sharing            01/01/70 00:00      
      Overflow            01/01/70 00:00      
      variables, main and ISR            01/01/70 00:00      
         Globals use more memory            01/01/70 00:00      
      Isn't that a global?            01/01/70 00:00      
         Globals, ISRs, main, & static            01/01/70 00:00      

Back to Subject List