This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What does -march=native select?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]