Re: Default gcc tuning?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ian Lance Taylor" <iant@xxxxxxxxxx> 
??????:m3bqhei86l.fsf@xxxxxxxxxxxxxxxxxxxxxxxx
> "Zuxy Meng" <zuxy.meng@xxxxxxxxx> writes:
>
>> I mean what will gcc do if no '--with-cpu' '--with-arch' '--with-tune' 
>> etc
>> are given during configuration. Specifically for x86, when neither march 
>> nor
>> mtune is given, will gcc merely treat it as march=i386 mtune=i386?
>
> You need to say precisely how gcc was configured, or you need to tell
> us the "Target:" line printed by gcc -v.

I got several gcc on various machines. Targets include 'i686-pc-linux', 
'mingw32' and 'sparc-sun-solaris2.8', so by default gcc will produce code 
optimized for i686, i386 and v7?

> If the target is, e.g., i386-pc-linux-gnu, and none of the options you
> mentioned was specified, then older versions of gcc will tune for the
> i386, and recent versions of gcc will tune as though gcc were
> configured with --with-tune=generic.

-- 
Zuxy 




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux