Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
For iBook G3, are there better mcpu and mtune flags?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Jan 29, 2011 3:39 pm    Post subject: For iBook G3, are there better mcpu and mtune flags? Reply with quote

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
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Jan 29, 2011 4:23 pm    Post subject: I found something Reply with quote

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
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 422

PostPosted: Fri Feb 04, 2011 9:49 pm    Post subject: Reply with quote

I love the Rolling Stones, but your avatar is obnoxious.
_________________
My Wiki page
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 08, 2011 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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