Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > What flags for Super optimized compiles

What flags for Super optimized compiles
Thread Tools
Faice
Fresh-Faced Recruit
Join Date: Jul 2004
Status: Offline
Reply With Quote
Aug 2, 2004, 04:46 PM
 
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
     
mikkyo
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Aug 2, 2004, 05:37 PM
 
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
     
Faice  (op)
Fresh-Faced Recruit
Join Date: Jul 2004
Status: Offline
Reply With Quote
Aug 3, 2004, 05:15 AM
 
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 ?
     
mikkyo
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Aug 3, 2004, 05:51 PM
 
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.
     
mikkyo
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Aug 6, 2004, 03:47 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:25 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,