[macstl-dev] macstl for gcc 4.0 on Tiger
Glen Low
glen.low at pixelglow.com
Sat May 28 16:51:59 WST 2005
Hi All
I've just committed a change for macstl (0.2.2.16) to our Subversion
servers which enables macstl for Apple gcc 4.0 on Mac OS X 10.4 aka
Tiger.
Here are some preliminary benchmark results, if you're interested:
Benching multiply add: 2000000/sec 3.4*std 3.4*raw.
Benching inner product: 1000000/sec 3*std 3*raw.
Benching polynomial: 833333/sec 3.58333*std 3.41667*raw.
Benching hypotenuse: 322580/sec 3.45161*std 3.64516*raw.
Benching complex multiply add: 344827/sec 2.2069*std 2.34483*raw.
Benching predicate: 1250000/sec 13.375*std 1.875*raw.
Benching slicing: 222222/sec 0.733333*std 0.8*raw.
Benching power: 49751/sec 7.12935*std 7.12438*raw.
Benching trigonometric: 71942/sec 22.1439*std 22.0288*raw.
The nice thing is that the trig results are now comparable to CW 9.3
and inner product and polynomial seems a little faster. Changed the
casts over to use Motorola-style C syntax which cured the ICE's that
gcc 4.0 gets, and moved the data () member function over to vec from
vec_base, which fixed a large part of the slowdowns. Also tweaked the
inlining options a little more and the benchmark suite so that gcc
4.0 doesn't over-eagerly shift code around and kill my timers.
Curiously enough, I enabled the long-awaited and fabled
autovectorization feature in gcc 4.0 -- -ftree-vectorization -- and
didn't see any budge in the above figures. Go figure. Perhaps one of
you can enlighten me what I did wrong there.
It's not yet a release version -- I hope to get some other changes in
place (including SkyComputer's support for YDL) and test reversions
on the other compilers -- hopefully it should be released around time
of the WWDC (a week more).
If you're dying to try it out right away, well -- [shameless plug
ahead] individual, corporate or redistributable licensees have
Subversion checkout rights (1, 2 or 3 years from date of payment --
see http://www.pixelglow.com/macstl/purchase/) on the trunk and you
can even spin off your own version in the branches. You know what to
do :-)
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
aim: pixglen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pixelglow.com/lists/archive/macstl-dev/attachments/20050528/900a2a86/attachment.html
More information about the macstl-dev
mailing list