|
|
What flags for Super optimized compiles
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2004
Status:
Offline
|
|
Hello,
I tried to compile my own Boinc-client and SETI-Worker. It went ok, but my client isn't as fast as mikkyo's. So my question is: What compiler-flags were used when compiling these clients?
In future I'll try to compile the client with the gcc-3.5 on Panther. I heard that gcc-3.5 has a special altivec-flag, which increases performance a lot. So it would be great, if anyone could tell me this flag too.
Bye,
Faice
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status:
Offline
|
|
On a machine with current DevTools installed see the optimization section of
file:///Developer/Documentation/ReleaseNotes/DeveloperTools/GCC3.html
For the G5 I used
-O3 -faltivec -fastf -funroll-loops -arch ppc970 -mcpu=G5 -mtune=G5 -ffast-math
For the G4 you can use
-O3 -faltivec -fastf -funroll-loops -mcpu=G4 -mtune=G4 -ffast-math
For the G3
-O3 -fstrict-aliasing -funroll-loops -mdynamic-no-pic -mcpu=G3 -mtune=G3 -ffast-math
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2004
Status:
Offline
|
|
Ok, cool.
And what about this altivec-flag in the gcc-3.5? Yesterday I downloaded the sourcecode of the gcc-3.5 and tried to compile it under Panther. Unfortunately it went wrong. What do I need to compile and use gcc under OS X ?
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status:
Offline
|
|
You need the DevTools for OS X from Apple.
Anyone can sign up to be an ADC member for free and then you can download free downloads, like XCode updates and the like.
http://developer.apple.com/membership/online.html
Though you may be able to build gcc from source for Darwin, I don't believe it includes all the latest Apple flags.
The latest gcc from Apple is only in the Tiger Preview, I believe.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status:
Offline
|
|
Apple just released XCode1.5 which isn't the same as what is in the Tiger Preview.
Maybe there is a way to make earlier OS compatible auto-vectorized boinc clients using the Tiger preview?
(
Last edited by mikkyo; Aug 8, 2004 at 06:02 PM.
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|