check-cpu script in the MySQL BUILD directory does not always succeed in detecting the right processor:
roland@roland-laptop:/opt/mysql/5.1/bitkeeper/BUILD$ ./check-cpu
BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using.
When you dig a little deeper into that script, you will notice that the name of you particular processor (in my case: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz) is indeed not there and thus not checked. Finally you may find that the model and name of your processor are passed to the
gcc compiler. As far as I cans see the information is used to set the values of the
--mtune and --march compiler options. What those are? Hehe! Ok, here's a partial result from man gcc:
-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.
Mmm, not sure why
-mtune=cpu-type is there in the first place then...Anybody?
(PS: use
/proc/cpuinfo to find out what kind of processor you really have....)