G
Göran Bilski
Guest
Hi,
I did a quick test with MicroBlaze.
With 125 MHz and 64kbyte of local memory, it takes MicroBlaze 6.8s to run
the benchmark.
I added two defines in the program.
#define printf xil_printf
#define double float
The first define is to get a smaller code footprint since the default printf
is bloated and no floating-point is printed.
The second define will make the compiler to use the MicroBlaze FPU
single-precision floating-point compare and conversion instructions.
Neither defines will change the program result since there is no actual
floating-point calculations, just compare and conversions.
Actually the program prints out a relative large number of characters and if
I remove the printf statement that is part of the loop, the program executes
in 6.1 s
The baudrate will have an effect on the execution speed if too many prints
exists in the timed section.
Göran
"Tommy Thorn" <tommy.thorn@gmail.com> wrote in message
news:f005305a-30b9-4ca2-ae01-7fd3e2622853@l17g2000pri.googlegroups.com...
I did a quick test with MicroBlaze.
With 125 MHz and 64kbyte of local memory, it takes MicroBlaze 6.8s to run
the benchmark.
I added two defines in the program.
#define printf xil_printf
#define double float
The first define is to get a smaller code footprint since the default printf
is bloated and no floating-point is printed.
The second define will make the compiler to use the MicroBlaze FPU
single-precision floating-point compare and conversion instructions.
Neither defines will change the program result since there is no actual
floating-point calculations, just compare and conversions.
Actually the program prints out a relative large number of characters and if
I remove the printf statement that is part of the loop, the program executes
in 6.1 s
The baudrate will have an effect on the execution speed if too many prints
exists in the timed section.
Göran
"Tommy Thorn" <tommy.thorn@gmail.com> wrote in message
news:f005305a-30b9-4ca2-ae01-7fd3e2622853@l17g2000pri.googlegroups.com...
I trying to get a feel for how the performance of my (so far
unoptimized) soft-core stacks up against the established competition,
so it would be a great help if people with convenient access to Nios
II / MicroBlaze respectively would compile and time this little app:
http://radagast.se/othello/endgame.c (It's an Othello endgame solver.
I didn't write it) and tell me the configuration.
In case anyone cares, mine finished this in 100 seconds in this
configuration: 8 KiB I$, 16 KiB D$, 48 MHz clock frequency, async
sram. (My Mac finished this in ~ 0.5 sec
Thanks
Tommy