Good point: the flags in the makefile were are all over the place.
Had -01, then -0s in the same gcc line. Made it -03 and now the 45s are
down to 30s.
Better, but still too long of course.
Thanks for that Matt, and for the 1s on 400MHz figure; that makes me
feel it's worth to keep looking for the problem.
Kind regards/Magnus
On 2011-03-15 14:08, Matt Johnston wrote:
On Tue, Mar 15, 2011 at 02:02:54PM +0100, Magnus Nilsson wrote:
Sorry, I was unclear - it's only 100% busy during those 45s.
My question is:
Is 45s reasonable on a 192MHz cpu, or do you think I might have some
issue with my compilation options (see my first post,
http://hi.baidu.com/kkernel/blog/item/ff919681141beddebc3e1e23.html
but with --disable-shadow) or something?
Anyone who has similar experiences? Or the opposite, someone who's
running it on a low-end system without this issue?
I haven't tried anything quite that low-end, but the couple
of MIPS routers I've tried at ~400mhz take about 1 second
for that step. I guess there could be something odd about
the architecture that interacts badly with what libtommath
is doing, or perhaps the compiler. The binary was built with
optimisation enabled?
Cheers,
Matt