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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/15/05 12:22
Read: times


 
#101116 - how much
Responding to: ???'s previous message
How much memory do you actually need for your variables? Both idata and pdata generate better optimized code and thereby reduce the number of temporaries which SDCC automatically stores in data. You probably have a lot of those temporaries now and that's why you run out of (data) memory. Moving some variables to idata or pdata might help.

And if you use the default small memory model all function parameters are also in data memory. Using --model-large might help.

Finally SDCC tries to overlay variables in data but is not very good at it. Using --stack-auto might help as that automatically overlays everything on stack.

List of 14 messages in thread
TopicAuthorDate
compiling in SDCC on 89c52            01/01/70 00:00      
   Move some variables            01/01/70 00:00      
      all in xdata            01/01/70 00:00      
         go have a cup of coffee            01/01/70 00:00      
         If that isn't enough..            01/01/70 00:00      
            a disastrous approach            01/01/70 00:00      
            Indeed            01/01/70 00:00      
               we agree, I hope, on both points            01/01/70 00:00      
                  Pardon me for breathing            01/01/70 00:00      
                     why the need for a pardon            01/01/70 00:00      
                        Really?            01/01/70 00:00      
                           With Craig on this one            01/01/70 00:00      
                        the full story            01/01/70 00:00      
   how much            01/01/70 00:00      

Back to Subject List