Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo on powerbook (compiler settings)
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
kikix
n00b
n00b


Joined: 05 Apr 2004
Posts: 13

PostPosted: Wed Apr 07, 2004 4:32 pm    Post subject: gentoo on powerbook (compiler settings) Reply with quote

should I change the compiler settings or can I use the default settings ??
Back to top
View user's profile Send private message
jaapjan
n00b
n00b


Joined: 11 Dec 2003
Posts: 12
Location: The Netherlands

PostPosted: Thu Apr 08, 2004 7:01 am    Post subject: Reply with quote

You can always use the default settings, they're made to work for your system.

You can change your compiler settings, but only if you're choosing to start from stage 1. Maybe 2. The guide/handbook on the website explains this all.
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Vancouver, BC, Canada

PostPosted: Sat Apr 10, 2004 5:41 am    Post subject: Reply with quote

You can change your compiler settings at any time. For a G4, use the G4 optimizations that are commented out (by default) in /etc/make.conf
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Apr 10, 2004 7:53 am    Post subject: Reply with quote

here are my CFLAGS that I`m using on my G4 Powerbook (from www.freehackers.org) which work realy great!

CFLAGS="-mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"

As you can see you CAN use -O3 with G4. (read somewhere that this causes problems)

Markus
Back to top
View user's profile Send private message
pvdabeel
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 188
Location: Belgium

PostPosted: Sun Apr 11, 2004 9:47 pm    Post subject: Reply with quote

corsair wrote:
here are my CFLAGS that I`m using on my G4 Powerbook (from www.freehackers.org) which work realy great!

CFLAGS="-mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"

As you can see you CAN use -O3 with G4. (read somewhere that this causes problems)

Markus


For gcc 3.3.3, don't forget to add -fno-strict-aliasing.
Back to top
View user's profile Send private message
tomasino
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 154
Location: Italy, Bologna

PostPosted: Tue Apr 13, 2004 2:36 pm    Post subject: Reply with quote

corsair wrote:

CFLAGS="-mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"


I've read on "man gcc" that -mcpu=7450 override -mpowerpc-gfxopt, use only the first.

Please notify me if I'm wrong.
Back to top
View user's profile Send private message
tomasino
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 154
Location: Italy, Bologna

PostPosted: Tue Apr 13, 2004 3:06 pm    Post subject: Reply with quote

pvdabeel wrote:


For gcc 3.3.3, don't forget to add -fno-strict-aliasing.


I've done a downgrade to gcc 3.2.3 cause of an error emerging mozilla-1.6, should compile with this flag?
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Tue Apr 13, 2004 5:22 pm    Post subject: Reply with quote

tomasino wrote:
corsair wrote:

CFLAGS="-mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"


I've read on "man gcc" that -mcpu=7450 override -mpowerpc-gfxopt, use only the first.

Please notify me if I'm wrong.


You are very correct there. In fact setting an appropriate -mcpu option is pretty much all that you really need to do as it sets proper defaults for that type of processor, aside from maybe setting your optimization level (-O) and maybe -pipe (altho I think this is also not needed, check man gcc for more info hehe)
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