Which -march option to use for a generic 64-bit cpu?

Tim Prince n8tm@aol.com
Sat Jan 21 17:48:00 GMT 2012


On 1/21/2012 12:22 PM, Erik Leunissen wrote:
> On 21/01/12 16:33, Jonathan Wakely wrote:

>>
>> Why do you think you need to use any -march option?
>
> Well, for all I knew, absence of any option could mean that gcc
> generates code for the machine where I run the compile command, and not
> for others.
>
> Following that logic, I expected to need a -march option.
You're thinking of -march=native.  It's not set by default, but you 
might find it set in a makefile.



-- 
Tim Prince



More information about the Gcc-help mailing list