| « New: XFCE4 PS3 LiveCD | Another installment of PS3 stages » |
Semi-optimized PS3 stages
A few days ago, I announced new stages had been pushed to the Gentoo mirrors. Shortly thereafter, mtb and I had a conversation on IRC where he was asking about the default set of CFLAGS in make.conf. After some short investigation, it appears that the PS3 stages were not getting the desired CFLAGS with things like altivec send to them when being built. I must thank mtb for bringing this up.
The good news is that I have corrected the problem in the build process and now stages are getting the CFLAGS consistent with the 970 profile:
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"
I have rebuilt the stages and GRP and they are already on the mirrors.
http://gentoo.osuosl.org/experimental/ppc64/stages/
Remember the installation instructions can be found at:
http://overlays.gentoo.org/proj/cell/wiki/InstallGentooOnPS3
As I mentioned in my last blog, I am still working on a new livecd which should include an updated version of Firefox and a working version of Thunderbird.
Enjoy!
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
4 comments
Is -O2 really optimal for the PS3? I have little experience of optimising CFLAGS but considering the PS3 doesn't have so much RAM, might -Os be better? Do you know if anyone has done any tests?
Stroller.
Just for reference, we're working to become more gcc-4.3 savy so that we can actually begin to pass the "cell" mcpu for increased optimization. My hope is that will make things a little more interesting.
just a passing thought as you bring up
the flags.
i was rereading http://forum.beyond3d.com/showthread.php?s=7c9350bc2751cdda0bb5aee91b329bf7&p=893620#post893620 again and remembered about
using -funroll-loops to increase speed.
also, while i assume noones yet
replaced any core PPC linux code with
Altivec routines?, perhaps its time
to see if some optimisations can be found.
it seems such a waste to have the
Altivec chip sat there (almost) idle
taking up power and not being used in
any of the current core OS code.
markos's freevec still seems unused
anywere obvious in any part of the PPC OS codebase, and yet freevec is full of
tested code that works for most app
speed options....
he implyed it could be used to replace
or supliment lots of core code and get
a massive speed boost, such a shame
noone seems to have tryed to run tests
to see if it can boost the PS3 effort.
for readers, that thread was good for test code
code and otpimisations to try.
-----------------
-O0: some basic and minimum optimization
-O2: strong, low-level optimization that benefits most programs
-O3: intense, low-level optimization analysis with basic loop optimization
--------------
i think gcc4 still has broken -03 and still produces slower code than the old ones, but i may be wrong or was it just 4.0.3
http://gentoo-wiki.com/Safe_Cflags#Cell_Broadband_Engine_.28Playstation_3.29
the recommendation is cell.
Thank you for your help! Best regards.
This post has 1 feedback awaiting moderation...