I usually write a timing loop that calls a subroutine 10 times in the loop and loops 100 times or 1000 times or 10000 times, and you time it with your watch. Then you know how many ms that routine takes. In a message dated 12/26/2007 4:21:59 P.M. Eastern Standard Time, a.nabil.mohamednadim@gmail.com writes: hi ALL, i have a basic knowledge that optimizing my code time or speed is a very important matter when writing a professional code. Using languages like "C" in codevision for example, makes it harder to know the execution time of my instructions, i know the matter also depends on the clock that the MCU works on but i mean how many cycles will the program take ?? My question: How can i do that ?? is there are programs do that optimization or time calculation?? thanks in advance -- A H M E D N A B I L [Non-text portions of this message have been removed] Yahoo! Groups Links **************************************See AOL's top rated recipes (http://food.aol.com/top-rated-recipes?NCID=aoltop00030000000004) [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] code speed optimization
2007-12-26 by BobGardner@aol.com
Attachments
- No local attachments were found for this message.