Here my results:
 
1. I changed my programm loop to the following integer calculations:
 

int i;
int a = 0;
int b = 23210

for(i = 0; i<35000; i++)
{
            a = a + b;
}

With that i got a frequency of 413 Hz with Starterware and 420 Hz with 
Linux. So finally a comparable result. The following is quite interesting: 
changing the number of loops from 35000 to 10000, 1000, 100 and 10; I found 
out that Starterware gets faster and faster while Linux stucks at 6 kHz due 
to the sysfs interface of the GPIOs.

 

2. Using this Link 
http://processors.wiki.ti.com/index.php/StarterWare_NeonVFP I coud enable 
the FPUs of the Cortex-A8 on Starterware. My loop with the sqrt-Function 
from above speed up from 500ms to 11,2ms on Starterware but still this is 
10 times slower than on Linux where I measure 1,1 ms !!! 

 
3. I changed my FPU testing loop to the following:
 
 
int i;
float x = 0;
float y = 2.812;

for(i = 0; i<35000; i++)
{
            x = x + y;
}

Running the Starterware program on debug mode, I measured 870 Hz and in 
Linux 900 Hz. Running Starterware on release mode, I even measured 1,1 kHz. 
So doing float calculations without math-Functions, I finally get a 
comparable result. But still there is this questions with what the Compiler 
does with the sqrt-Function???
 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to