If you _have_ to use Dhystone (the benchmark that generates DMIPS) you can
find it in the examples directory of your ADS/RVDS toolkit with build files.
When compareing benchmarks you should be careful to keep within the 'rules',
or at least make sure the same rules are being used by all players,
Dhrystone forbids inlining of calls, but diffrent tools do this diffrently,
and for some tools it may not be obvious that inlining is happening (if for
instance it is done by the "linker" program)
Will
MIPS = instructions executed / microseconds taken.
But are you sure that is what you want to measure? It would be far
better and easier to time one iteration of your application using a
hardware timer to get CPU utilization:
CPU utilization = number of timer ticks for one iteration / number of
ticks per second * 100%
Wilco
Read the documentation of your OS or board and find out how to access
the timers. If you're not using an OS you'll need to write code to
initialise
the timers and count timer interrupts. If there are no timers you can't do
what you're trying to do on real hardware, you would need to run your
application on a simulator to get an estimate of how many cycles it takes.
One way or another, you'll have to do some work yourself...
Wilco
Regards,
Sathish Athreya