Re: -Os versus -O2



On 06/25/2007 03:33 AM, david@xxxxxxx wrote:

is the list of what's included in -O2 vs -Os different for different CPU's? what about within a single family of processors? (even in the x86 family the costs of jumps, loops, and cache misses varies drasticly)

At least not in the example Duron/Athlon case. Both -march=athlon{,-4) but 64K versus 256K L2 which I'd expect to be an important difference in the -Os versus -O2 behaviour.

Rene.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: On-chip, 7-way associative
    ... ES47 cache. ... EV7 broke enough new ground that it was difficult to ... True, the EV68 development costs were already sunk, ... Costs of single-source CPU chips, with a custom-designed process, are ...
    (comp.os.vms)
  • Re: How much tuning does regular lisp compilers do?
    ... | question of how realistic such improved "cached aligned" loops ... In my conversations with people who *are* experienced compiler ... expect that on modern x86 machines that the penalty ... And since cache lines are aligned ...
    (comp.lang.lisp)
  • Re: On-chip, 7-way associative
    ... ES47 cache. ... The costs one must compare (except for the single-processor configuration which you rightly note below would have required special components to support EV7) to determine whether EV7 ES and dual-socket DS series systems would have been more cost effective are the *marginal* production costs. ... True, the EV68 development costs were already sunk, but so were the EV7 costs, so only the actual production costs matter. ...
    (comp.os.vms)
  • Re: Recode to Play MP3?
    ... memory page 256 times, multiplied by the value in memory location $08. ... Your code is "perfect" for the cache, since the first page move "warms ... Since the write buffer can handle one byte every 8 cycles ... is not common in 6502 code, particularly loops. ...
    (comp.sys.apple2)
  • Re: size_t problems
    ... When we are speaking of cache, ... Now, seeing as conservatively your proposal will increase my companies storage requirements by 10% and that could easily increase our storage costs by 5%, that will be another 3500UKP. ... Then if it ups the cost of RAM required by servers by 50UKP, and we have to go to the next processor up costing another 100UKP, for our 10 servers that is another 5000UKP. ... Will you give us that 5000UKP to cover the increased costs you want to force on us? ...
    (comp.lang.c)