Re: How to compare computing power of microcontrollers?



Eric wrote:

> If you don't have hardware for both, I would write a piece of assembly
> code "on paper". This code should be represntative of a function that
> you will be doing for your application (ie. 16 bit multiplication and
> trig). And add up the number of clock cycles it would take each
> processor to run the same piece of code.
>
> This calculations assumes each processor has similar instructions and
> the compilers you use have a similar optimization routine.
>
> You know the # of clock cycles and the frequency, you can then evaluate
> which processor has a better performance for your application.
>
> It is time consuming, but without looking at the Datapath / Instruction
> cycles you can't evaluate the performance.
>
> Example: a processor may run at a faster clock frequency, but if the
> instructions you are using aren't pipelined well your just burning up
> power and not gaining performance.
>
> Multiplication tends to be one of the instructions that is poorly
> pipelined in smaller cpus. So the # of instructions that MULT takes
> might be a good enough benchmark for your application.

Good advice from Eric there. You should also be aware of the cost
constraints of your project (is this a one off or do you need to make
millions of devices?). This will also determine whether the effort you
expend in finding the processor is better than going wity one that may be
overkill in terms of obvious performance advantage.

--
********************************************************************
Paul E. Bennett ....................<email://peb@xxxxxxxxxxxxxxxxxx>
Forth based HIDECS Consultancy .....<http://www.amleth.demon.co.uk/>
Mob: +44 (0)7811-639972
Tel: +44 (0)1235-811095
Going Forth Safely ....EBA. http://www.electric-boat-association.org.uk/
********************************************************************
.



Relevant Pages

  • Re: How to compare computing power of microcontrollers?
    ... If you don't have hardware for both, I would write a piece of assembly ... And add up the number of clock cycles it would take each ... a processor may run at a faster clock frequency, ... instructions you are using aren't pipelined well your just burning up ...
    (comp.arch.embedded)
  • Re: Iyonix instruction timings and RAM speed results
    ... I get 166/127 for main RAM and 5.7/62 for PCI Video memory on my original ... unrolled LDM/STM instructions for these, ... "add floating point" instruction takes almost 200 clock cycles, ... MOV R0,R0,LSL #1 ...
    (comp.sys.acorn.misc)
  • Re: Clock cycles list - help
    ... N = Amount of instructions used, ... Intel got similar lists, but I also missed SSE-timing there. ... but it used latency values only. ... containing the clock cycles of each mnemonic, ...
    (alt.lang.asm)
  • Re: Clock cycles list - help
    ... N = Amount of instructions used, ... but it used latency values only. ... Those lists are a bit confusing.. ... containing the clock cycles of each mnemonic, ...
    (alt.lang.asm)
  • Re: Atmega128 or MSP430 for low power, decent performance?
    ... MSP430) but otherwise 2 clock cycles is much more realistic ... claims like "most instructions will take 1 clock cycle". ... using the Dhrystone benchmark, but this assumes the compiler has ... the AVR may be faster. ...
    (comp.arch.embedded)