| View previous topic :: View next topic |
| Author |
Message |
xylo36 n00b

Joined: 27 Apr 2010 Posts: 5
|
Posted: Tue May 11, 2010 1:10 am Post subject: G5 CFlags |
|
|
Can I use -march=native or should I use the following:
CHOST="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970"
CXXFLAGS="${CFLAGS}"
I took the above from the safe cflags wiki and am just wondering if those are still the best settings. |
|
| Back to top |
|
 |
gringo Advocate


Joined: 27 Apr 2003 Posts: 3505
|
Posted: Thu May 13, 2010 11:45 am Post subject: |
|
|
i dont know how it is with the G5 but using -mcpu=native apparently made no difference if icompared with the output from -mcpu=G4 in my powerbook.
EDIT : sorry, of course i meant -mcpu and not -march, im not even sure if native is supposed to work without march.
cheers
Last edited by gringo on Fri May 14, 2010 12:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
bmaass n00b

Joined: 15 Mar 2008 Posts: 25
|
Posted: Fri May 14, 2010 12:20 pm Post subject: Re: G5 CFlags |
|
|
I'm using the following:
CFLAGS="-mcpu=970 -mtune=970 -maltivec -mabi=altivec -fno-strict-aliasing -O2 -pipe" |
|
| Back to top |
|
 |
xylo36 n00b

Joined: 27 Apr 2010 Posts: 5
|
Posted: Fri May 14, 2010 6:56 pm Post subject: |
|
|
Have you had any problems with those bmaas? I would like the system to be as stable as possible.
Also, are the altivec settings not included with cpu 970 setting? |
|
| Back to top |
|
 |
bmaass n00b

Joined: 15 Mar 2008 Posts: 25
|
Posted: Sun May 16, 2010 12:06 pm Post subject: |
|
|
| No problems. The altivec stuff may be in the 970 flag, I'm not sure. Can't hurt to have it twice. |
|
| Back to top |
|
 |
|