On 07/10/2011 13:44, Diego Herranz wrote: > Hello! > > I want to calculate the maximum execution time of a ISR and so > estimate the minimum frequency required for the microcontroller. > > Does anybody know any software tool to calculate the maximum execution > time of a function? >
I'm not aware of any automated tool. I would depends a lot on any loops or conditionals. What I ususally do is count number of instructions in the longest possible path of the generated ASM , and multiply by the average number of clocks/instruction of the CPU. Then you know how many clock cyles needed, then divide by frequency (clocks/sec) to find time. -- Karl ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user