This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What does -march=native select?
- From: Ian Lance Taylor <iant at google dot com>
- To: Yang Zhang <yanghatespam at gmail dot com>
- Cc: GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 21 Mar 2009 16:03:36 -0700
- Subject: Re: What does -march=native select?
- References: <49C53804.5020900@gmail.com>
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