* 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 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 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
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 12:50 defaults for -march and -mtune Jay Foad
2011-11-24 12:57 ` Marcin Mirosław
2011-11-24 14:49 Jay Foad
2011-11-25 8:59 ` Marcin Mirosław
2011-11-25 9:09 ` Ryan Hill
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).