* Re: defaults for -march and -mtune
@ 2011-11-24 14:49 Jay Foad
2011-11-25 8:59 ` Marcin Mirosław
0 siblings, 1 reply; 5+ messages in thread
From: Jay Foad @ 2011-11-24 14:49 UTC (permalink / raw)
To: gcc-help
Marcin MirosÅaw wrote:
> Try: gcc -Q --help=target 2>&1|grep "march\|mtune"
Thanks! It's a shame it doesn't work on GCC 4.1.2 as well...
Thanks,
Jay.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: defaults for -march and -mtune 2011-11-24 14:49 defaults for -march and -mtune Jay Foad @ 2011-11-25 8:59 ` Marcin Mirosław 2011-11-25 9:09 ` Ryan Hill 0 siblings, 1 reply; 5+ messages in thread From: Marcin Mirosław @ 2011-11-25 8:59 UTC (permalink / raw) To: gcc-help W dniu 24.11.2011 13:50, Jay Foad pisze: > Marcin Mirosà aw wrote: >> Try: gcc -Q --help=target 2>&1|grep "march\|mtune" > > Thanks! It's a shame it doesn't work on GCC 4.1.2 as well... If you want to know what is default target for older gcc you can do such trick: $ touch a.c $ gcc -fverbose-asm -S a.c -o - |grep "march\|mtune" (founded on gcc mailinglist) Regards ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: defaults for -march and -mtune 2011-11-25 8:59 ` Marcin Mirosław @ 2011-11-25 9:09 ` Ryan Hill 0 siblings, 0 replies; 5+ messages in thread From: Ryan Hill @ 2011-11-25 9:09 UTC (permalink / raw) To: gcc-help [-- Attachment #1: Type: text/plain, Size: 767 bytes --] On Thu, 24 Nov 2011 16:10:10 +0100 Marcin Mirosław <marcin@mejor.pl> wrote: > W dniu 24.11.2011 13:50, Jay Foad pisze: > > Marcin MirosÅaw wrote: > >> Try: gcc -Q --help=target 2>&1|grep "march\|mtune" > > > > Thanks! It's a shame it doesn't work on GCC 4.1.2 as well... > > If you want to know what is default target for older gcc you can do such > trick: > $ touch a.c > $ gcc -fverbose-asm -S a.c -o - |grep "march\|mtune" > (founded on gcc mailinglist) Or `echo "" | gcc -v -E - 2>&1 | grep cc1` -- fonts, gcc-porting, it makes no sense how it makes no sense toolchain, wxwidgets but i'll take it free anytime @ gentoo.org EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* defaults for -march and -mtune @ 2011-11-24 12:50 Jay Foad 2011-11-24 12:57 ` Marcin Mirosław 0 siblings, 1 reply; 5+ messages in thread From: Jay Foad @ 2011-11-24 12:50 UTC (permalink / raw) To: gcc-help If I don't specify any -march= or -mtune= options, what are the default architectures to generate code for and to tune for? Can I get the compiler to tell me this information? The documentation here doesn't seem to say anything about it: http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html I'm using "gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1" targetting x86_64. Thanks, Jay. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: defaults for -march and -mtune 2011-11-24 12:50 Jay Foad @ 2011-11-24 12:57 ` Marcin Mirosław 0 siblings, 0 replies; 5+ messages in thread From: Marcin Mirosław @ 2011-11-24 12:57 UTC (permalink / raw) To: gcc-help W dniu 24.11.2011 11:37, Jay Foad pisze: > If I don't specify any -march= or -mtune= options, what are the > default architectures to generate code for and to tune for? Can I get > the compiler to tell me this information? > > The documentation here doesn't seem to say anything about it: > > http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html > > I'm using "gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1" targetting x86_64. Hello! Try: gcc -Q --help=target 2>&1|grep "march\|mtune" Regards ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-11-25 5:34 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-11-24 14:49 defaults for -march and -mtune Jay Foad 2011-11-25 8:59 ` Marcin Mirosław 2011-11-25 9:09 ` Ryan Hill -- strict thread matches above, loose matches on Subject: below -- 2011-11-24 12:50 Jay Foad 2011-11-24 12:57 ` Marcin Mirosław
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).