Task Complete !
I clocked the Compiled C code to 200 MIPS.
Supposed to be 400 MHz ?
- Maybe because of LONG int ? - or MultiTasking ?
Anyway - FAST enough for ME !
I used a Loop of 400,000,000 iterations, of probably 5 commands per loop - took 10 seconds.
> ((400000000 iterations * 5 cmdsPerLoop) / 10 seconds) = 200,000,000 = 200 MIPS
I downloaded YunGcc.tgz and UnTARred it onto my SDCard,
then compiled using GCC feom SD Card :
// testSpd.c : //
// - loop=400,000,000 => IPS = ((400000000 * 5) / 10 seconds) = 200 MIPS
#include <stdio.h>
void main()
{
long i;
printf("Start ..\n");
for(i=0;i<400000000;i++)
{
}
printf("Done !\n");
}
root@domino:/mnt/sda2/Code# gcc testSpd.c
/mnt/sda2/gcc/bin/ld: Warning: a.out uses -msoft-float (set by /mnt/sda2/gcc/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.4/crtbegin.o), /tmp/cc80ZcyD.o uses -mhard-float
root@domino:/mnt/sda2/Code# ./a.out
Start ..
Done !
root@domino:/mnt/sda2/Code#