Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

Re: [Sdcc-user] Tool for calculating maximum execution time

 Re: [Sdcc-user] Tool for calculating maximum execution time From: Karl Hiramoto - 2011-10-07 11:57:18 ```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 ```

 [Sdcc-user] Tool for calculating maximum execution time From: Diego Herranz - 2011-10-07 11:48:08 Attachments: Message as HTML ```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? Thanks! ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Karl Hiramoto - 2011-10-07 11:57:18 ```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 ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Jan Waclawek - 2011-10-07 12:33:56 ```For 8051 (including its not-clock-compatible derivatives), some time ago I added a cycle counting facility into Jeff Post's disassembler. http://www.8052.com/users/disasm/ I don't remember if it works also for Z80 or not. It requires to carefully read the documentation and to set up the disassembler control file carefully, which may turn out to be a really tedious work, maybe not worth the hassle. Another alternative might be to single-step the ISR in a simulator (or emulator), with carefully setting registers (peripherals, memory positions etc.) so that it results in the worst case execution. Jan Waclawek ----- Original Message --------------- >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? ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Diego Herranz - 2011-10-07 12:49:49 Attachments: Message as HTML ```Thanks for your answers. I want it for PIC so Jeff Post's disassembler won't do it. Anyway the cycle counting facility looks nice. I guess that I'll need to hard check the longest path in ASM and calculate the cycles, etc. It would be really useful to have an automated tool. Thank you On Fri, Oct 7, 2011 at 2:33 PM, Jan Waclawek wrote: > For 8051 (including its not-clock-compatible derivatives), some time ago I > added a cycle counting facility into Jeff Post's disassembler. > > http://www.8052.com/users/disasm/ > > I don't remember if it works also for Z80 or not. It requires to carefully > read the documentation and to set up the disassembler control file > carefully, which may turn out to be a really tedious work, maybe not worth > the hassle. > > Another alternative might be to single-step the ISR in a simulator (or > emulator), with carefully setting registers (peripherals, memory positions > etc.) so that it results in the worst case execution. > > Jan Waclawek > > > > ----- Original Message --------------- > >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? > > > > ------------------------------------------------------------------------------ > 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@... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Richard Gray - 2011-10-07 13:52:54 ```If you have access to a counter/timer somewhere, you can sample it at the beginning of the interrupt service routine and sample it again at the end, and provided you're confident that it hasn't wrapped around, you can derive the execution time from the difference of the two samples. On Friday 07 October 2011 12:44:57 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? > > Thanks! -- Richard. PGP Key-id: 0x5AB3D350 Some men are alive simply because it is against the law to kill them. -- Ed Howe ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Douglas Goodall - 2011-10-07 14:37:04 ```Which processor are you working with, regarding this question? Douglas On Oct 7, 2011, at 4:44 AM, 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? > > Thanks! > ------------------------------------------------------------------------------ > 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@... > https://lists.sourceforge.net/lists/listinfo/sdcc-user ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Diego Herranz - 2011-10-07 15:08:53 Attachments: Message as HTML ```It's for pic 18f2550. Using an auxiliary timer looks as a good idea. El 07/10/2011 16:37, "Douglas Goodall" escribió: > Which processor are you working with, regarding this question? > > Douglas > > > > On Oct 7, 2011, at 4:44 AM, 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? > > > > Thanks! > > > ------------------------------------------------------------------------------ > > 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@... > > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > > ------------------------------------------------------------------------------ > 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@... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Kustaa Nyholm - 2011-10-07 17:28:07 ```Remember that you still need to ensure that the longest path is executed and that you measure that. br Kusti [BTW I thought this was bottom posting list...] On 10/7/11 17:51, "Diego Herranz" wrote: >It's for pic 18f2550. >Using an auxiliary timer looks as a good idea. >El 07/10/2011 16:37, "Douglas Goodall" escribió: > >Which processor are you working with, regarding this question? > >Douglas > > > >On Oct 7, 2011, at 4:44 AM, 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? >> >> Thanks! >> >>------------------------------------------------------------------------- >>----- >> 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@... >> https://lists.sourceforge.net/lists/listinfo/sdcc-user > > >-------------------------------------------------------------------------- >---- >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@... >https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > > -- Kustaa Nyholm Research Manager, Software Research and Technology Division PLANMECA OY Asentajankatu 6 00880 HELSINKI FINLAND Please note our new telephone and fax numbers! Tel: +358 20 7795 572 (direct) Fax: +358 20 7795 676 GSM: +358 40 580 5193 e-mail: kustaa.nyholm@... ```
 Re: [Sdcc-user] Tool for calculating maximum execution time From: Graham Clinch - 2011-10-08 19:09:25 Attachments: Message as HTML ```Diego, I ran into this problem with my drag strip timing system, the ISR had to complete in a fixed time but had decisions to make and was taking taking different times depending on the path so I added a hardware output. I set a spare I/O pin high on entry and low on exit and used an oscilloscope to see the ISR time by measuring the pulse width. By adding dummy code I managed to "tune" it to be almost exactly the same number of instructions no matter which decisions it made. Of course, you can count the instructions and T-cycles, but that's boring...... Regards Graham Clinch ----- Original Message ----- From: Diego Herranz To: sdcc-user Sent: Friday, October 07, 2011 12:44 PM Subject: [!! SPAM] [Sdcc-user] Tool for calculating maximum execution time 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? Thanks! ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ 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```