Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFLAGS for G3 800 Mhz iBook?
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: Mon Aug 23, 2004 2:21 am    Post subject: CFLAGS for G3 800 Mhz iBook? Reply with quote

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


Joined: 27 Jan 2004
Posts: 46

PostPosted: Mon Aug 23, 2004 4:11 am    Post subject: Reply with quote

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


Joined: 11 Mar 2004
Posts: 292

PostPosted: Mon Aug 23, 2004 10:07 am    Post subject: Reply with quote

a usefull command is


Code:
cat /proc/cpuinfo


also try

Code:
cat /proc/ <tab>


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


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

PostPosted: Mon Aug 23, 2004 10:53 pm    Post subject: Reply with quote

glurps wrote:
a usefull command is


Code:
cat /proc/cpuinfo


also try

Code:
cat /proc/ <tab>


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


Joined: 11 Mar 2004
Posts: 292

PostPosted: Tue Aug 24, 2004 9:55 am    Post subject: Reply with quote

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


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Tue Aug 24, 2004 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Wed May 10, 2006 7:51 am    Post subject: Reply with quote

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
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