Re: PPC cflags

Christopher Hota <[email protected]>
Newsgroups gmane.linux.gentoo.ppc
Organization MidSOUTH at UALR
Message-ID <[email protected]>
On my new 12" Aluminum PowerBook, I'm using the following with no 
problems (results in spankin-fast binaries, too):

CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt 
-fsigned-char -mstring -mmultiple"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"

chris.

:: Christopher Gautam Hota
:: Information Technology Specialist
:: MidSOUTH at UALR
:: [email protected]
:: (501) 683-7339 desk
:: (501) 413-1176 cell

|| Microsoft Certified Systems Engineer
|| Windows XP / Server 2003



Carl Hudkins wrote:

>On Sat February 19 2005 21:49, Nick Smith wrote:
>
>  
>
>><quote who="Drew Kirkpatrick">
>>
>>    
>>
>>>I've got a Blueberry iBook, with a 300 MHz ppc, and these seem
>>>very
>>>stable to me:
>>>
>>>CFLAGS="-O2 -mtune=G3  -pipe"
>>>      
>>>
>
>  
>
>>well the default file that game with the install has:
>>CFLAGS="-02 -mtune=powerpc -fno-strict-aliasing -pipe"
>>    
>>
>
> (Note that your "-O2" needs to contain a letter O, not a number zero, as you 
>have typed above... otherwise, I'm sure it will puke.)
>
>  
>
>>i was just tring to add some more and it puked, do you know what
>>the differences are between the G3 and powerpc flags? what
>>should i be using? is one better that the other?
>>    
>>
>
> Here on a 450 MHz G3, I've been using these flags for many months with no 
>problems:
>
>CFLAGS="-O3 -mcpu=G3 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
>
> As to the difference between G3 and powerpc, G3 is a subset of the larger 
>category, powerpc.  PPC machines are made by Apple, IBM, and others; G3 is a 
>very specific version, among the processors that implement the PowerPC 
>instruction set.  So, by specifying G3, we are telling the compiler exactly 
>what kind of CPU we have, so that it can enable any processor-specific 
>performance enhancements.
>
> I mostly found the information on CFLAGS from the GCC documentation.  You can 
>view the GCC info pages to find it, and if you use KDE you can paste these 
>into Konqueror to go directly to the relevant sections:
>
>info:/gcc/Optimize Options
>info:/gcc/RS/6000 and PowerPC Options
>
> Good luck!
>
>  
>
cghota.vcf (text/x-vcard, 431 B)
begin:vcard
fn:Christopher Hota
n:Hota;Christopher
org:MidSOUTH at UALR;Information Technology Division
adr:Physical Plant 303a;;2801 S University Drive;Little Rock;AR;72205;USA
email;internet:[email protected]
title:Information Technology Specialist
tel;work:(501) 683-7339
tel;fax:(501) 569-8629
tel;home:(501) 240-4680
tel;cell:(501) 413-1176
x-mozilla-html:FALSE
url:http://www.midsouth.ualr.edu/
version:2.1
end:vcard
smime.p7s (application/x-pkcs7-signature, 3.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.