* What does -march=native select?
@ 2009-03-21 18:55 Yang Zhang
2009-03-21 23:03 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Yang Zhang @ 2009-03-21 18:55 UTC (permalink / raw)
To: GCC-help
I peeked under gcc/config/i386/ and found the host_detect_local_cpu()
function - is there any way to observe the return value of this function
via the gcc frontend?
--
Yang Zhang
http://www.mit.edu/~y_z/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What does -march=native select?
2009-03-21 18:55 What does -march=native select? Yang Zhang
@ 2009-03-21 23:03 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2009-03-21 23:03 UTC (permalink / raw)
To: Yang Zhang; +Cc: GCC-help
Yang Zhang <yanghatespam@gmail.com> writes:
> I peeked under gcc/config/i386/ and found the host_detect_local_cpu()
> function - is there any way to observe the return value of this
> function via the gcc frontend?
Compile a C file with gcc -c -march=native -v. Look at the options
passed to cc1. You should see a -march= option. That is what was
detected.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-21 23:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-21 18:55 What does -march=native select? Yang Zhang
2009-03-21 23:03 ` Ian Lance Taylor
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).