On 23/11/04 14:56, "Pete Gregory" <[EMAIL PROTECTED]> wrote:

> Sorry if this is a liittle off topic.  If it is, pointers in the right
> direction greatfully appreciated
> 
> A while back I knocked up some math benchmarks on my trusty G3 Pismo
> under Metrowerks CodeWarrior (a somewhat out of date(vanilla C) version
> which came out for 603/604e era)... and was pleasantly surprised to see
> it performed these tasks faster than a Win2000 laptop (1GHz P4) and Sun
> Ultra60.
> 
> I've now upgraded to a G4/450 based Mac and purchased OSX which so far
> is great.  The old compiled code runs OK under classic.  I tried
> recompiling these benchmarks under gcc (& x-code) using the -O3 flag and
> set up for a G4.  The surprise is that these takes FIVE TIMES LONGER
> when recompiled than the old code under classic.
> 
> Are there any suggestions to better optimization flags etc or other
> (preferably free/cheap) compilers out there?

gcc is almost the only game in town, besides CodeWarrior. I've read a few
times that it doesn't generate the fastest code. You have to carefully setup
those flags in order to get the most out of it.

Did you try this with a brand new Xcode project or a ProjectBuilder project
updated to Xcode? Or was it an imported CodeWarrior project?  If you haven't
tried, I would suggest starting a brand new Xcode 'tool' project. You might
also consider getting on Apple's email discussion  list. There is an
Xcode-related list and also and performance-optimization list.

-Laurent.
-- 
========================================================================
Laurent Daudelin                 Developer, Multifamily, ESO, Fannie Mae
mailto:[EMAIL PROTECTED]                Washington, DC, USA
************************ Usual disclaimers apply ***********************


-- 
G-Books is sponsored by <http://lowendmac.com/> and...

 Small Dog Electronics    http://www.smalldog.com  | Refurbished Drives |
 -- Check our web site for refurbished PowerBooks  |  & CDRWs on Sale!  |

      Support Low End Mac <http://lowendmac.com/lists/support.html>

G-Books list info:      <http://lowendmac.com/lists/g-books.html>
  --> AOL users, remove "mailto:";
Send list messages to:  <mailto:[EMAIL PROTECTED]>
To unsubscribe, email:  <mailto:[EMAIL PROTECTED]>
For digest mode, email: <mailto:[EMAIL PROTECTED]>
Subscription questions: <mailto:[EMAIL PROTECTED]>
Archive: <http://www.mail-archive.com/g-books%40mail.maclaunch.com/>



---------------------------------------------------------------
>The Think Different Store
http://www.ThinkDifferentStore.com
---------------------------------------------------------------


Reply via email to