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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/02/06 19:34
Read: times


 
#121589 - depends on what you define as overhead
Responding to: ???'s previous message
if you consider one simple example ... a loop to sample a port bit at a precise rate. At some speeds it is simple, as you can easily execute plenty of loops testing a status bit, OR, you have to "straight-line" a loop in which you sample the bit, say, 32 times before branching back because 32 passes through the loop allows you to recover enough time to mask the time loss due to the branch.

Some would consider that an optimization, while some would consider the extra code volume to be extra overhead. I personally consider the test and branch if set operation overhead, but I can certainly see why one might consider the extra code to be overhead as well. Most people don't bother to write critically timed code at all, preferring to use one form or another of hardware to solve the problem. As I see it, however, if I have to make nine passes one time and ten passes every tenth time, then the logic to determine which time "this" is fits into the overhead category in my judgment.

I don't see how any sort of tool can perform that optimization for me.

RE






List of 33 messages in thread
TopicAuthorDate
code optimisation            01/01/70 00:00      
   Optimisations            01/01/70 00:00      
   problem solved            01/01/70 00:00      
      good closure!            01/01/70 00:00      
         and the very best ...            01/01/70 00:00      
            Isn't that why we have "tools"?            01/01/70 00:00      
               not quite and a good read            01/01/70 00:00      
               A Posidriv driver and a Phillips screw            01/01/70 00:00      
                  I have done this too, I think you are wrong            01/01/70 00:00      
                     Best Ways?            01/01/70 00:00      
                        what is best?            01/01/70 00:00      
                           Guide lines and trade-off\'s            01/01/70 00:00      
                              what about 'and'            01/01/70 00:00      
                                 Dangerous Information            01/01/70 00:00      
                                    depends on what you define as overhead            01/01/70 00:00      
                                       Overhead            01/01/70 00:00      
                                          the whole truth, please            01/01/70 00:00      
                                             one good thing...            01/01/70 00:00      
                                             CPU Overhead            01/01/70 00:00      
                                                there is an article 'somewhere' that cover C for            01/01/70 00:00      
                                                   the real optimum            01/01/70 00:00      
                                                      Your time is appreciated            01/01/70 00:00      
                                                   how about these?            01/01/70 00:00      
                                                      a required capability for optimum code            01/01/70 00:00      
                        small and readable            01/01/70 00:00      
                           my sentiment            01/01/70 00:00      
                              In that spirit ... where's the user guide?            01/01/70 00:00      
                                 Did you download the documentation            01/01/70 00:00      
                                    have a look            01/01/70 00:00      
                                       Non-GPL            01/01/70 00:00      
                                       I'll have a look!            01/01/70 00:00      
                                    It's not quite as the page suggests            01/01/70 00:00      
                        Lint            01/01/70 00:00      

Back to Subject List