public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Re: -march=auto
@ 2009-05-22 17:36 maxim wexler
  2009-05-22 21:36 ` ABCD
  2009-05-22 21:53 ` Alex Schuster
  0 siblings, 2 replies; 10+ messages in thread
From: maxim wexler @ 2009-05-22 17:36 UTC (permalink / raw
  To: gentoo-user




--- On Thu, 5/21/09, Alex Schuster <wonko@wonkology.org> wrote:

> From: Alex Schuster <wonko@wonkology.org>
> Subject: [gentoo-user] Re: -march=auto
> To: gentoo-user@lists.gentoo.org
> Received: Thursday, May 21, 2009, 12:30 PM
> I just wrote:
> 
> > > Could also perhaps try -march=auto if you're
> using a version of GCC
> > > that supports it.
> 
> Oh, it's -march=native.
> 
> > BTW, is there a possibility to let gcc tell what flags
> it will actually
> > use with -march=auto?
> 
> Paul Hartman just posted a link to a script that seems to
> do what I was 
> looking for in the "[OT]eee 900a intel atom is what
> processor family?" 
> thread: <http://www.pixelbeat.org/scripts/gcccpuopt>
> 
> But it suggests using -march=k8 - isn't that a 64-bit-only
> thing? I'm not 

For an 900A w/intel Atom?

This is what I get:

Warning: Your compiler supports the -march=native option which you may prefer
Warning: Newer versions of GCC better support your CPU with -march=atom
-march=core2 -mtune=pentium -mfpmath=sse.

Now I'm confused. It says *my* compiler supports -march=native. Then it says "Newer versions". Isn't v4.3.2 new? It was from a new pkg about a month ago. Is it giving me a choice here? Can I really declare two -march variables? What about mtune and mfpath, are they meant to be "instead of" or "in addition to"? What goes in the kernel config? What in /etc/paludis/bashrc?

Maxim




      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: -march=auto
@ 2009-05-22 23:55 maxim wexler
  2009-05-23  2:21 ` Alex Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: maxim wexler @ 2009-05-22 23:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

> If so, Daniel's 
> tip about 'gcc -Q --help=target -march=native' will give
> you the exact 
> options to use.
>  
>     Wonko
> 
>

See attachment please. Some stuff is enabled, some disabled, some blank. And -march=prescott !?

Maxim


      __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

[-- Attachment #2: gcc-Q --]
[-- Type: application/octet-stream, Size: 2767 bytes --]

The following options are target specific:
  -m128bit-long-double        		[disabled]
  -m32                        		[enabled]
  -m3dnow                     		[disabled]
  -m3dnowa                    		[disabled]
  -m64                        		[disabled]
  -m80387                     		[enabled]
  -m96bit-long-double         		[enabled]
  -mabm                       		[disabled]
  -maccumulate-outgoing-args  		[disabled]
  -malign-double              		[disabled]
  -malign-functions=          		
  -malign-jumps=              		
  -malign-loops=              		
  -malign-stringops           		[enabled]
  -march=                     		prescott
  -masm=                      		
  -mbranch-cost=              		
  -mcld                       		[disabled]
  -mcmodel=                   		
  -mcx16                      		[disabled]
  -mfancy-math-387            		[enabled]
  -mfp-ret-in-387             		[enabled]
  -mfpmath=                   		
  -mfused-madd                		[enabled]
  -mglibc                     		[enabled]
  -mhard-float                		[enabled]
  -mieee-fp                   		[enabled]
  -minline-all-stringops      		[disabled]
  -minline-stringops-dynamically 	[disabled]
  -mintel-syntax              		[disabled]
  -mlarge-data-threshold=     		
  -mmmx                       		[disabled]
  -mms-bitfields              		[disabled]
  -mno-align-stringops        		[disabled]
  -mno-fancy-math-387         		[disabled]
  -mno-push-args              		[disabled]
  -mno-red-zone               		[disabled]
  -mno-sse4                   		[enabled]
  -momit-leaf-frame-pointer   		[disabled]
  -mpc                        		
  -mpopcnt                    		[disabled]
  -mpreferred-stack-boundary= 		
  -mpush-args                 		[enabled]
  -mrecip                     		[disabled]
  -mred-zone                  		[enabled]
  -mregparm=                  		
  -mrtd                       		[disabled]
  -msahf                      		[enabled]
  -msoft-float                		[disabled]
  -msse                       		[disabled]
  -msse2                      		[disabled]
  -msse3                      		[disabled]
  -msse4                      		[disabled]
  -msse4.1                    		[disabled]
  -msse4.2                    		[disabled]
  -msse4a                     		[disabled]
  -msse5                      		[disabled]
  -msseregparm                		[disabled]
  -mssse3                     		[disabled]
  -mstack-arg-probe           		[disabled]
  -mstackrealign              		[disabled]
  -mstringop-strategy=        		
  -mtls-dialect=              		
  -mtls-direct-seg-refs       		[enabled]
  -mtune=                     		generic
  -muclibc                    		[disabled]
  -mveclibabi=                		


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [gentoo-user] [OT]eee 900a intel atom is what processor family?
@ 2009-05-21  2:52 maxim wexler
  2009-05-21 18:41 ` Paul Hartman
  0 siblings, 1 reply; 10+ messages in thread
From: maxim wexler @ 2009-05-21  2:52 UTC (permalink / raw
  To: gentoo-user


Hi group,

Going through my kernel config I see CONFIG_M686 "Pentium Pro". That can't be right. 

But there is nothing for Intel Atom, the 900A's processor. Is it CONFIG_M586?
Is CONFIG_M386 my best choice, the default?

BTW /etc/paludis/bashrc lists:

CFLAGS="-02 -march=i686 -pipe". Is that supposed to reflect the proper kernel config. Is it "Pentium Pro" afterall?

Maxim.



      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-05-23  2:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22 17:36 [gentoo-user] Re: -march=auto maxim wexler
2009-05-22 21:36 ` ABCD
2009-05-22 21:53 ` Alex Schuster
  -- strict thread matches above, loose matches on Subject: below --
2009-05-22 23:55 maxim wexler
2009-05-23  2:21 ` Alex Schuster
2009-05-21  2:52 [gentoo-user] [OT]eee 900a intel atom is what processor family? maxim wexler
2009-05-21 18:41 ` Paul Hartman
2009-05-21 19:08   ` -march=auto (was: Re: [gentoo-user] [OT]eee 900a intel atom is what processor family?) Alex Schuster
2009-05-21 19:30     ` [gentoo-user] Re: -march=auto Alex Schuster
2009-05-21 19:43       ` Paul Hartman
2009-05-21 22:06       ` Peter Humphrey
2009-05-22  0:25         ` Alex Schuster
2009-05-22 10:21     ` -march=auto (was: Re: [gentoo-user] [OT]eee 900a intel atom is what processor family?) Daniel Iliev
2009-05-22 21:44       ` [gentoo-user] Re: -march=auto Alex Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox