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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/06/05 17:46
Read: times


 
#96710 - manual optimization
Responding to: ???'s previous message
"Micro optimisation?" maybe - but repeated so often to cause a macroscopic benefit!

It is ludicrous to expect anyone, that consider him/herslef a real programmer, to familiarize him/herself with something as uninteresting as hardware. That would remove the idea of abstraction and thinking in real terms has absolutely nothing to do with programming.
To have to think about what should be where in memory is an abnomiable requirement, such mundane considerations have nothing to do with real programming, why can the compiler not shuffle stuff to DATA/IDATA/XDATA in an efficient manner by itself.
Of course, the fact that the programmer must concern him/herself with access to peripherals must be due to total incompetence of the people programming the compiler.

To make everyone happy, and make "heroic" efforts like the one Andy did obsolete, so we can finally get around to "real C" I suggest the following

Mr Keil:
make an optimizer that analyzes every path the program can take, optimize based on which inputs get activated how often, automatically replaces malloc() calls with optimized arrays, loves and expediently handle function pointers, shuffles variables about between XDATA, IDATA and DATA while knowing which XDATA is MMIO, changes slow loop calls to interrupt driven, reverses loops where possible and compress the code to the absolute minimum while, at the same time, get processing speed to maximum. Have it ready in a week and make it open source and free. Do not get lost in the false assumption that because we complain about the price we do not want absolute perfection.

Erik

List of 54 messages in thread
TopicAuthorDate
code optimization            01/01/70 00:00      
   erm...            01/01/70 00:00      
   guidelines            01/01/70 00:00      
   Duh !!!!            01/01/70 00:00      
      yes its a link to learn optimization            01/01/70 00:00      
         the links provided            01/01/70 00:00      
            Really Wicked Optimisations!            01/01/70 00:00      
            counters in loops?            01/01/70 00:00      
               DJNZ            01/01/70 00:00      
                  ahh            01/01/70 00:00      
                  DOES it ?            01/01/70 00:00      
                     on Keil forum            01/01/70 00:00      
                     Yes!            01/01/70 00:00      
                     Of course it does...            01/01/70 00:00      
                        But...            01/01/70 00:00      
                           asking too much            01/01/70 00:00      
                              Not at all            01/01/70 00:00      
                           Maybe it does...            01/01/70 00:00      
                              Not when I tried it.            01/01/70 00:00      
                                 Lopp Rtation            01/01/70 00:00      
                        While you're there, Jon...            01/01/70 00:00      
                           how like a salt block?            01/01/70 00:00      
                              oh -- got it            01/01/70 00:00      
                           Overlaying and Scope            01/01/70 00:00      
                              Does it matter?            01/01/70 00:00      
                                 debugging            01/01/70 00:00      
   Previously on 8052.com            01/01/70 00:00      
      yes its in the board            01/01/70 00:00      
      IAR Article - Getting the Least            01/01/70 00:00      
   To be taken with a pinch of salt            01/01/70 00:00      
      more like a salt block            01/01/70 00:00      
      Re            01/01/70 00:00      
         switch            01/01/70 00:00      
            Switch/Case Optimization            01/01/70 00:00      
               Re: Switch/Case Optimization            01/01/70 00:00      
                  Look Why            01/01/70 00:00      
               Jon, I may have made a mistake            01/01/70 00:00      
         Big switches            01/01/70 00:00      
         Was?            01/01/70 00:00      
            Link to newer version            01/01/70 00:00      
               Hitex; Chris Hills            01/01/70 00:00      
                  Draft!            01/01/70 00:00      
   intermediate values in lookup tables            01/01/70 00:00      
      Generating lookup tables            01/01/70 00:00      
   a general statement on code optimization            01/01/70 00:00      
      Craft            01/01/70 00:00      
      Corrections            01/01/70 00:00      
         urban legends            01/01/70 00:00      
            Been there.            01/01/70 00:00      
               I think this is closer to the truth            01/01/70 00:00      
                  I just realize that the above            01/01/70 00:00      
               EE/CS            01/01/70 00:00      
            Micro-Optimisations - real-life example            01/01/70 00:00      
               manual optimization            01/01/70 00:00      

Back to Subject List