Re: [AVR-Chat] Re: code speed optimization
2007-12-29 by np np
Optimisation is one of my favourite jobs. I enjoy finding faster algorithms and optimising code. On the PC I call subroutines many thousands of times and get the PC to report the result in time taken. On microcontrollers I tend to use a scope and pulse an IO pin at the start of the subroutine.
Show quoted textHide quoted text
----- Original Message ----
From: David VanHorn <microbrix@gmail.com>
To: AVR-Chat@yahoogroups.com
Sent: Saturday, 29 December, 2007 3:29:34 PM
Subject: Re: [AVR-Chat] Re: code speed optimization
> 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.
I agree in principle, but in practice, with non-trivial routines, it
becomes unwieldy to calculate every possibility. Much easier to scope
it, throw real data in, and measure min and max. Besides, simulated
results are just that. Simulated. You might miss a path, but the
running code won't.
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
[Non-text portions of this message have been removed]