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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Jan Waclawek
08/01/05 07:10
Read: 630 times
Bratislava
Slovakia


 
#98582 - other way round
Responding to: Erik Malund's previous message
Of course I don't want to make something time critical (like precise delay loops). Contrary - I want to avoid something stops working because something else grew uncontrolled. See the thread where this one came from.
For example, the timer - imagine one makes it 10ms periodic, highest priority, why not, it is a nice unit and there are 10kcycles on the plain vanilla available between two interrupts. And then he makes a clock, counting up to 100 in the 10ms and displaying the time. Then somebody else adds more and more features - and suddenly it starts running somewhat slow...
My pseudosolution would be:
#pragma cc_begin
Timer_ISR:
     ... code here ...
      ... with branches ...
       ... more branches ...
        ... manually (in simulator) almost untraceable ...
     ret(i)
#pragma cc_end
#pragma cc_maxcount 9000

and upon reaching 9000 cycles it would emit a warning or error...

Still looks useless?

Jan Waclawek

List of 18 messages in thread
TopicAuthorDate
Counting cycles... possible in C?      Jan Waclawek      07/28/05 01:03      
   You need a Profiler      Andy Neil      08/01/05 00:00      
      The compiler knows      Jan Waclawek      08/01/05 03:21      
         Source code useless      Andy Neil      08/01/05 04:50      
         That's why you need Assembler!      Andy Neil      08/01/05 04:56      
            nohohoho      Jan Waclawek      08/01/05 05:12      
               Speed is not everything!      Andy Neil      08/01/05 05:54      
   Cycles vary?      James Krushlucki      08/01/05 01:37      
      I know      Jan Waclawek      08/01/05 03:23      
   absolutely, but what good does it do      Erik Malund      08/01/05 06:27      
      other way round      Jan Waclawek      08/01/05 07:10      
         Yes, the things posted apply in this cas      Erik Malund      08/01/05 07:23      
            exactly for this reason      Jan Waclawek      08/01/05 08:29      
               how can you automate that it is small en      Erik Malund      08/01/05 08:35      
   Use Microsoft Excel      Aubrey Kagan      08/01/05 18:04      
      excel and conditional branches ?      Erik Malund      08/02/05 05:53      
         That's why      Aubrey Kagan      08/02/05 07:13      
            That makes absolutotally no difference,      Erik Malund      08/02/05 07:23      

Back to Subject List