gcc 3.1 and 10.2
It is known that Apple is right now making many changes to the gcc compiler to optimize for PowerPC processors. The last time that Apple had a really good compiler that they used 'MrC' they also had really good FP performance. Apple used the MrC compiler, if I remember correctly, once when they had first got the 604e, then Steve came in and they stopped spending money for Moto to support a compiler for them. From what I see it seems that Apple would like to keep their fate in their own hands. So I'm wondering what the changes could lead to?? This could be really good news for us. I don't think that Apple has had a really good compiler for many years and it looks like they are getting one now. Maybe that is the reason that there are no new developer versions of 10.2 floating around, Apple is keeping the feature set the same and they are just making changes to the compiler and seeing what kind of assembly it spits out. Make change, recompile, distribute the results, review the new code, make sure it works, and see how well optimized the code is. It looks like Apple is making an automatic optimizer like Intel has, or at least along those lines.
Discuss, correct, weigh in...
Ty
Discuss, correct, weigh in...
Ty
Comments
Hopefully we will reap the benefit in the 10.2 release.
AJ
Probably most developers would wait until the next upgrade to recompile their applications vs. recompiling and making the update available for just the cost of the CD and shipping. Althoug I suppose they could just spin it as another dot release that's too big for download. Either way having a mix of initial rev and recompiled apps, running on a mix of initial rev and recompiled OS builds would probably lead to a lot of support headaches. More likely they'll just wait till the next version and *require* the recompiled OS to run.
*** Gigahertz UltraSPARC III SPEC Surprise ***
By Kevin Krewell {1/14/02-01}
Sun pulled more than one trick out of its hat with the introduction of the latest speed grade for the UltraSPARC III. For this most recent 1,050MHz version, Sun used the same 0.15-micron, low-k dielectric TI semiconductor process it previously used for the 900MHz US III.
Sun has not put much credence in benchmark results and has not been an exceptional performer on SPEC benchmarks (see MPR 9/4/01-02, "900MHz UltraSPARC III Ready to Ship"). However, the latest US III produced surprising SPEC numbers, with one benchmark in particular showing an amazing increase over previous Sun benchmarks. The base
score of 9,389 for the SPECfp2000 program 179.art is roughly four times the score of its closest competitor, the 800MHz Itanium. The combined SPECfp2000 (base) result of 701 virtually ties the 703 score achieved by the 800MHz Itanium, although it still trails the 1,098 score produced by the 1.3GHz Power 4. Although these new US III results
are partially the result of the higher frequency and an improved translation look-aside buffer (TLB), in large part the improvements are owing to a new Forte Developer 7 compiler. The new benchmark results now put the 1,050MHz UltraSPARC III in the middle of the high-performance pack
instead of at the end of its tail. The US III at 1,050MHz is scheduled to be available for customer shipments in 1Q02. (The full version of this article is available online to Microprocessor Report subscribers at <a href="http://www.mdronline.com/mpr/h/2002/0114/160201.html" target="_blank">http://www.mdronline.com/mpr/h/2002/0114/160201.html</a>
End Quote
Just goes to show what a really good compiler can do for performance, here is to hoping that Apple can be as successful at making compiler improvements as Sun. The PowerPC should have good SPEC numbers, gcc 3.1 could be the answer. gcc3.1 and 10.2 could be a potent combination.
Ty
According to Andrew Welsh of Ambrosia fame, a recompile with gcc 3.0 results in a 10% speed increase... This is good.
GCC is for small time developers and people who want to compile unix code on their OSX box. Apple doesn't want their apps to crawl, so they are optimizing the compiler that everyone else will likely be using.
From my few failed attempts to build Darwin and Darwin parts, GCC is the only way to build the that layer of the OS. While its not all of OSX, its substantial enough that Apple is commiting serious effort to optimizing it for PPC code.
I don't see why Apple *wouldn't* use gcc based on what little I know of it.
<strong>Odd. I've heard that CodeWarrior's compiler sucks badly, among other aspects of their IDE. What does PB use to compile apps? There's something in the Dev directory called CpMac...but it's a small file...related perhaps?
I don't see why Apple *wouldn't* use gcc based on what little I know of it.</strong><hr></blockquote>
I believe that CpMac copies files with resource forks. That is something that the cp command cannot do. Someone please correct me if I am wrong.
<strong>Recompiling the OS alone shouldn't cause any difficulties with existing applications. They only see the interfaces which would be the same, not the differently compiled executable code.
</strong><hr></blockquote>
Hmm, not sure, couldn't C++ name mangling cause interopability issues when using different compilers?
Bye,
RazzFazz
<strong>I seriously doubt Apple uses GCC to compile their code. There are many excellent commercial compilers (CodeWarrior, for one) that are geared specifically for PPC.</strong><hr></blockquote>
Does CodeWarrior have working Objective-C support at all?
Bye,
RazzFazz
<strong>
Does CodeWarrior have working Objective-C support at all?
</strong><hr></blockquote>
Depends on your definition of "working."