View previous topic :: View next topic |
Author |
Message |
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Sat Jan 29, 2011 3:39 pm Post subject: For iBook G3, are there better mcpu and mtune flags? |
|
|
Hello all,
I"m working on putting Gentoo on an old iBook G3 to try to breathe some new life into it.
I'm looking at the manual, and the example has -mcpu=powerpc and -mtune=powerpc
Is there a more specific flag that can be set for the G3 on my laptop? It is old and likely could use all the help it can get for compiling.
I"m starting with stage3 and then doing the bootstrap...so, everything will be optimized as much as possible.
In the manual, it said examples could be found in /etc/make.conf/example, but I don't see that file anywhere around.
Any suggestions for these....any other good thing to put in there for squeezing as much as I can out an old computer that has worked well for me for years....?
Thanks in advance,
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Sat Jan 29, 2011 4:23 pm Post subject: I found something |
|
|
Wow...forgot that I'd tried doing a dual boot on this thing way back in 2006..and I'd asked a similar question.
https://forums.gentoo.org/viewtopic-t-213425-highlight-cayenne+mcpu.html
Looking like in the past it for the G3 it was -mcpu=750 -mtune=750
I'd assume this would still be the setting for today?
Also, seeing some other suggestions and I'm not sure what they do...
-mpowerpc-gfxopt
-fno-strict-aliasing
-mmultiple
-mstring
-ftracer
And I even saw this:
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
I've never seen anyone add anything to CXXFLAGS before..usually just set to the same as CFLAGS...and I've not heard of the
LDFLAGS before?
Any insight on these?
TIA,
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
mattst88 Developer
Joined: 28 Oct 2004 Posts: 422
|
Posted: Fri Feb 04, 2011 9:49 pm Post subject: |
|
|
I love the Rolling Stones, but your avatar is obnoxious. _________________ My Wiki page |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Tue Feb 08, 2011 7:39 am Post subject: |
|
|
Using 750 or G3 would work fine. The other options are not required and are implied (as needed) by 750 or G3.
LDFLAGS are passed to the linker. By default, you'll already have -Wl,-O1. You may want to try using -Wl,--as-needed, I use it on my development laptop with no real issues and it does reduce the number of libraries linked into binaries. Be careful when trying these sorts of options, it's easy to find a combination that breaks things, unless that's the point! :) _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|