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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/01/05 07:37
Read: times


 
#98550 - Cycles vary?
Responding to: ???'s previous message
Not sure about C but I used basic once to write a program which required precision timing ie. needed to account for cycles. I tried pre-caclulating the cycles with a simulator and building it into the program, the cycles varied in my case while checking time required to execute loops. I was unable to achieve the accuracy I required in my case to this point. May have been a sloppy compiler or bug in simulator probably gets complicated. I think you can use assembly statements in a c program can't you? You could use assembly for the critical parts of your program and C for the parts of the program not dependant on time.

Just a thought, may be way off base. Others can confirm or flame!


Regards
James krushlucki

List of 18 messages in thread
TopicAuthorDate
Counting cycles... possible in C?            01/01/70 00:00      
   You need a Profiler            01/01/70 00:00      
      The compiler knows            01/01/70 00:00      
         Source code useless            01/01/70 00:00      
         That's why you need Assembler!            01/01/70 00:00      
            nohohoho            01/01/70 00:00      
               Speed is not everything!            01/01/70 00:00      
   Cycles vary?            01/01/70 00:00      
      I know            01/01/70 00:00      
   absolutely, but what good does it do            01/01/70 00:00      
      other way round            01/01/70 00:00      
         Yes, the things posted apply in this cas            01/01/70 00:00      
            exactly for this reason            01/01/70 00:00      
               how can you automate that it is small en            01/01/70 00:00      
   Use Microsoft Excel            01/01/70 00:00      
      excel and conditional branches ?            01/01/70 00:00      
         That's why            01/01/70 00:00      
            That makes absolutotally no difference,            01/01/70 00:00      

Back to Subject List