Re: "rep ret" even for Intel CPUs?

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

 



Hi,

2011/3/22 Ian Lance Taylor <iant@xxxxxxxxxx>:
> "Zuxy Meng" <zuxy.meng@xxxxxxxxx> writes:
>
>> I found that gcc 4.5 generates "rep ret" even under -march=core2. Does
>> an Intel CPU benefit from this optimization too?
>
> As far as I know no Intel CPU benefits.  Note that -march selects the
> architecture but not the tuning.  The default tuning uses "rep; ret"
> when appropriate.  If you want to avoid it, use a -mtune option.

'info gcc' tells me that '-march=CPU-TYPE' implies '-mtune=CPU-TYPE',
at least for x86...

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



[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