View previous topic :: View next topic |
Author |
Message |
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Mon Aug 23, 2004 2:21 am Post subject: CFLAGS for G3 800 Mhz iBook? |
|
|
Hi all,
Thanks for all the help so far....been hitting a few gotcha's along the way here. I'm trying to figure out how to best put down my CFLAGS. I have an iBook, with G3 800Mhz chip.
I'm a little confused in the make.conf.examples of which chip setting I should use. One point says to use -mcpu=750...but, I also see -mcpu=powerpc
Also, do I need to use this -maltivec setting?
I've used -O3 on my x86 builds, but, have seen some posts saying that -O2 was better, faster and made for smaller files.
At this point I'm holding before I start the bootstrapping process, I've currently got:
CFLAGS="-O3 -mcpu=powerpc -pipe -fomit-frame-pointers"
Any suggestions for better settings?
Thank you,
]
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
korg n00b
Joined: 27 Jan 2004 Posts: 46
|
Posted: Mon Aug 23, 2004 4:11 am Post subject: |
|
|
Annoyingly, gentoo docs dont mention cflags at all in any helpful way, so it's up to outside sites like this one... (warning maybe old as its 1.4 and gcc3.2)
http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html
and various contradictory forum posts to cover this.
For your reference, I use:
Code: |
CFLAGS="-O2 -mcpu=750 -pipe -mpowerpc-gfxopt -mmultiple -mstring"
|
And it works ok for me. Trying a man gcc is often helpful.
Anyway, I welcome any other suggestions for 750 cflags (or suggestions for my G5 which currently has CFLAGS="-O2 -mcpu=G5 -pipe -maltivec -mabi=altivec -fno-strict-aliasing -mpowerp
c-gfxopt -mmultiple -mstring |
|
Back to top |
|
|
glurps Apprentice
Joined: 11 Mar 2004 Posts: 292
|
Posted: Mon Aug 23, 2004 10:07 am Post subject: |
|
|
a usefull command is
also try
i just did that for the first time -> there's a hole bunch of information you can get from there
hehe, just saw that you are rated "guru" |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Mon Aug 23, 2004 10:53 pm Post subject: |
|
|
glurps wrote: | a usefull command is
also try
i just did that for the first time -> there's a hole bunch of information you can get from there
hehe, just saw that you are rated "guru" |
Yeah, with lots of posts...you somehow seem to get guru status. I've done many x86 installs..and a couple sparc ones...first time I've ever even touched the ppc....and the documentation, or lack thereof is a little hard to get around...BUT I do learn from each time.
Many thanx for all the suggestions!! It appears to be bootstrapping as we speak.
C _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
glurps Apprentice
Joined: 11 Mar 2004 Posts: 292
|
Posted: Tue Aug 24, 2004 9:55 am Post subject: |
|
|
jup
yesterday i got gentoo (kinda) to work on my pb on the 3th try but i guess on the first try i didn't have much of a chance, since i had no experience with linux at all before i tried.
"kinda" because i didn't get the bootloader to work yet. always have to use a funky combination of keys to enter some kind of bootpromt but you will get there too, you'll see |
|
Back to top |
|
|
zojas Veteran
Joined: 22 Apr 2002 Posts: 1138 Location: Phoenix, AZ
|
Posted: Tue Aug 24, 2004 6:09 pm Post subject: |
|
|
I highly recommend sticking with -O2. I've had ebuilds fail to compile on my 700 MHz g3 ibook with -O3. also, check out my web page, I have most of my config files posted there. _________________ http://www.desertsol.com/~kevin/ppc |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Wed May 10, 2006 7:51 am Post subject: |
|
|
After some experience with my G3book I'd like to share my tested make.conf. Runs for months now and masters every emerge update (not considering other issues:): Code: | CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=750 -mtune=750 -O2 -pipe -fomit-frame-pointer -ftracer"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" |
_________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
|