Hi. I good approach for it is to calculate the MCU cycles. Doesn't matter if it is on C, to compile it, your compiler will create a file with your program in assembly. In the book Excel by Example, it teaches you how to create a sheat to calculate the MCU cycles based on assembly file. This will be more acurate than using an Osciloscope, but not easier. Bruno --- In AVR-Chat@yahoogroups.com, "ahmed nabil" <a.nabil.mohamednadim@...> wrote: > > 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] >
Message
Re: code speed optimization
2007-12-29 by Bruno
Attachments
- No local attachments were found for this message.