Mail Archives: djgpp-workers/1999/06/28/08:08:07
Hi
I've mentioned large (100%) speedup for regparm library in qsort. This result was bogus, I've just
compared unoptimized library with optimized one.
I've done few simple test and the speed improvement for qsort sorting integers is 20%,
simple recursive function (do nothing) with one parameter speeds up for approx. 30%, aprox 80% faster
when have 3 parameters on my Pentium160 MMX.
"normal" code will probably not be affected much (except the cases where function calling overhead
still plays important role, such as reading using fgetc or 3d engines drawing small triangles using
non-inlined function). I am looking forward to get some graphics library (allegro) working with regparm
to see the effect. I think the graphics libraries are best candidates for speedup.
Some extra speedup and space saving can be to make -fomit-frame-pointerized regparm libraries for production
code. This might make sense, because debugging is broken anyway. Sparc does this when -fast option is used.
Honza
- Raw text -