Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / October 2003



Tip: Looking for answers? Try searching our database.

Compiling for the G5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karen Lipkow - 17 Oct 2003 14:22 GMT
Hi,

I am going to get a Dual 2 GHz G5 PowerMac soon to speed up my
simulations, and I wonder how to compile my code to make the most of
this machine.  As many of you will be aware, the G5 has 64-bit-wide
registers, data paths, and internal logic units, instead of the 32 bit
of the G3/G4.  Apple distributes gcc3.3 in their August 2003 Developer
Tools update, which is meant to make use of this feature.  This will
work in Project Builder, but what about CodeWarrior ?  Does anyone have
any experience with this ?  I have CW v8.3.

Also, is it possilble to compile code for the G5 on the G4 ?  How ?

While I am at it, any tips how to make my code more G5-suitable would
also be highly appreciated.    

Thank you very much in advance,
Karen
Signature

remove underscore and seven from my email address

Paul Russell - 17 Oct 2003 16:03 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> work in Project Builder, but what about CodeWarrior ?  Does anyone have
> any experience with this ?  I have CW v8.3.

MetroWerks seesm to have dropped th eballas fasr as supporting the G5 is
concerned. If you relaly need ervy last ounce of performance on the G5
then you shoul dprobabyl consider using Apple's developer tools (gcc),
which have support for the G5.

> Also, is it possilble to compile code for the G5 on the G4 ?  How ?

The G5 instruction set is almost identical to, and mostly compatible
with the G4. If you use Apple's gcc you just turn on the G5 code
generation option, which mainly affects instruction scheduling. In
general you can build the code on G4 and/or G5 and run it on G4 and/or
G5. The only real issue is performance.

> While I am at it, any tips how to make my code more G5-suitable would
> also be highly appreciated.    

There are a number of tech notes on this subject at developer.apple.com,
and if you're serious about optimisation then you should also download
the CHUD (performance tools) package from the same place.

Good luck,

Paul
Chris Cox - 20 Oct 2003 01:22 GMT
> > Hi,
> >
[quoted text clipped - 9 lines]
> MetroWerks seesm to have dropped th eballas fasr as supporting the G5 is
> concerned.

It would be more correct to say that documentation for the G5 was
released too late for Metrowerks to include support in CW 9.

Chris
Paul Russell - 20 Oct 2003 02:45 GMT
> It would be more correct to say that documentation for the G5 was
> released too late for Metrowerks to include support in CW 9.

OK, except that they don't seem to be in any hurry to rectify this
situation. Apparently we won't see G5 support until CW 10 at the earliest.

Paul
Lally Singh - 20 Oct 2003 08:49 GMT
Your best hope for G5 compilation are the recently released IBM xlc
and xlC (C++) compilers.  On the bright side, the code they put out is
stupid fast.

Get them at http://www-3.ibm.com/software/awdtools/ccompilers/

> > It would be more correct to say that documentation for the G5 was
> > released too late for Metrowerks to include support in CW 9.
[quoted text clipped - 3 lines]
>
> Paul
Karen Lipkow - 20 Oct 2003 17:24 GMT
Thank you for your help, everybody.  The links and tips are very useful !

Karen
Signature

remove underscore and seven from my email address

Paul Russell - 20 Oct 2003 19:54 GMT
> Your best hope for G5 compilation are the recently released IBM xlc
> and xlC (C++) compilers.  On the bright side, the code they put out is
> stupid fast.
>
> Get them at http://www-3.ibm.com/software/awdtools/ccompilers/

Have you actually tried to use the IBM compilers ? They are still beta
and apparently not feature complete, e.g. xlc++ does not support Altivec
 or inline asm. But I'd be interested to see any real world benchmark
results for xlc/xlc++ versus CodeWarrior and/or gcc 3.3.

Paul
MW Ron - 27 Oct 2003 18:05 GMT
>> It would be more correct to say that documentation for the G5 was
>> released too late for Metrowerks to include support in CW 9.
>
>OK, except that they don't seem to be in any hurry to rectify this
>situation. Apparently we won't see G5 support until CW 10 at the earliest.

What company are you talking for or are you "Assuming things" ?

Ron

Signature

      Now Shipping CodeWarrior Development Studio,
    ARM ISA Edition for Linux Platform Development v2
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Paul Russell - 27 Oct 2003 18:37 GMT
>>>It would be more correct to say that documentation for the G5 was
>>>released too late for Metrowerks to include support in CW 9.
[quoted text clipped - 3 lines]
>
> What company are you talking for or are you "Assuming things" ?

I thought I was paraphrasing you, Ron ? Didn't you say recently that G5
support would not appear until CW 10 ? Apologies if I have misquoted or
misinterpreted you.

Paul
MW Ron - 27 Oct 2003 21:30 GMT
>>>>It would be more correct to say that documentation for the G5 was
>>>>released too late for Metrowerks to include support in CW 9.
[quoted text clipped - 7 lines]
>support would not appear until CW 10 ? Apologies if I have misquoted or
>misinterpreted you.

I don't think anything is written in Stone at this time.  Right now I
don't see any great demand for it, if that changes we will change too.  
I just didn't want to be boxed into any commitment.

Ron

Signature

      Now Shipping CodeWarrior Development Studio,
    ARM ISA Edition for Linux Platform Development v2
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Paul Russell - 27 Oct 2003 22:44 GMT
> I don't think anything is written in Stone at this time.  Right now I
> don't see any great demand for it, if that changes we will change too.  
> I just didn't want to be boxed into any commitment.

It would be a shame if MetroWerks threw away its competitive edge - CW
still generates the best AltiVec code for G4 of any compiler on any
platform and this is one of the main reasons that I still use it rather
than switching to PB/XCode/gcc. If MW doesn't invest in supporting the
G5 now it will be only a second or third best compiler in a year's time.

Paul
MW Ron - 28 Oct 2003 04:32 GMT
>> I don't think anything is written in Stone at this time.  Right now I
>> don't see any great demand for it, if that changes we will change too.  
[quoted text clipped - 5 lines]
>than switching to PB/XCode/gcc. If MW doesn't invest in supporting the
>G5 now it will be only a second or third best compiler in a year's time.

I think you mistook my reply.  I meant I didn't want to be boxed into
saying it would not be before CW 10,  not that it won't be in CW 10.  

Ron

Signature

      Now Shipping CodeWarrior Development Studio,
    ARM ISA Edition for Linux Platform Development v2
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Paul Russell - 28 Oct 2003 05:09 GMT
>>>I don't think anything is written in Stone at this time.  Right now I
>>>don't see any great demand for it, if that changes we will change too.  
[quoted text clipped - 8 lines]
> I think you mistook my reply.  I meant I didn't want to be boxed into
> saying it would not be before CW 10,  not that it won't be in CW 10.  

OK - point taken - let's hope it's sooner than CW10 then.

Regards,

Paul
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.