[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] catalyst c3 addition
From:       John Nilsson <john () milsson ! nu>
Date:       2004-02-26 7:36:48
Message-ID: 1077781007.9779.49.camel () newkid ! milsson ! nu
[Download RAW message or body]


gcc/config/i386/i386.c (cvs) 
http://savannah.gnu.org/cgi-bin/viewcvs/gcc/gcc/gcc/config/i386/i386.c?rev=1.653&content-type=text/vnd.viewcvs-markup
                
...
      {"c3", PROCESSOR_I486, PTA_MMX | PTA_3DNOW},
      {"c3-2", PROCESSOR_PENTIUMPRO, PTA_MMX | PTA_PREFETCH_SSE | PTA_SSE},
      {"i686", PROCESSOR_PENTIUMPRO, 0},
      {"pentiumpro", PROCESSOR_PENTIUMPRO, 0},
      {"pentium2", PROCESSOR_PENTIUMPRO, PTA_MMX},
      {"pentium3", PROCESSOR_PENTIUMPRO, PTA_MMX | PTA_SSE | PTA_PREFETCH_SSE},
...

c3(ezra): -march=c3 should be safe
c3-2(nehemiah): Use -march=pentum3 for compatibility with older gcc's.

-Os or -O2 is sitll up for debate. I have herad people have 10%
performance increase with -Os for kerenl, and others stating that -Os
slower than -O1 with heavy math stuff.

-John

On Thu, 2004-02-26 at 01:58, francis wrote:
> Hello,
> 	I am somewhat new to gentoo,  i've used catalyst to create some
> stage1/2/3 tar balls, however i have a c3 processor,  I have had a look
> at {sharedir}/arch/x86.py, and thought it should be easy to create the
> addition of a C3 type 
> 
> i assume something like
> 
> ...
> class arch_c3(generic_x86):
> def __init__(self,myspec):
> generic_x86.__init__(self,myspec)
> self.settings["CFLAGS"]="-march=i686 -mfpmath=sse -Os -pipe
> -fomit-frame-pointer"
> self.settings["CHOST"]="i686-pc-linux-gnu"
> self.settings["HOSTUSE"]=["mmx","sse"]
> 
> and 
> 
> ...
> def register(foo):
> 
> foo.update({..."c3":arch_c3,....})
> 
> 
> this would create a new subarch for the c3?  there is probably some more
> work that needs to be done for the other revisions of the c3
> 
> Thanks
> Francis
> 
> 
> --
> gentoo-dev@gentoo.org mailing list
> 


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic