|
前天编译安装mplayer
发现它的gcc参数(一部分)是:-O4 -march=i486 -mtune=i686
-O4?? 不是只有-O -O0 -O1 -O2 -O3 -Os么?
i486怎么冒出来了?
我的cpu: Intel(R) Celeron(R) CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9)
用哪个参数最好?
$info gcc
File: gcc.info, Node: i386 and x86-64 Options, Next: IA-64 Options, Prev: HP\
PA Options, Up: Submodel Options
3.17.13 Intel 386 and AMD x86-64 Options
----------------------------------------
`-mtune=CPU-TYPE'
Tune to CPU-TYPE everything applicable about the generated code,
except for the ABI and the set of available instructions. The
choices for CPU-TYPE are:
_i486_
Intel's i486 CPU. (No scheduling is implemented for this
chip.)
_i686_
Same as `generic', but when used as `march' option, PentiumPro
instruction set will be used, so the code will run on all
i686 familly chips.
_pentium4, pentium4m_
Intel Pentium4 CPU with MMX, SSE and SSE2 instruction set
support.
_prescott_
Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2
and SSE3 instruction set support.
`-march=CPU-TYPE'
Generate instructions for the machine type CPU-TYPE. The choices
for CPU-TYPE are the same as for `-mtune'. Moreover, specifying
`-march=CPU-TYPE' implies `-mtune=CPU-TYPE'. |
|