http://d.hatena.ne.jp/tmatsuu/20090110/1231557035

のスクリプトを利用させて頂く.

%  cat /proc/cpuinfo | grep model\ name
model name      : Intel(R) Core(TM)2 Duo CPU     E8500  @ 3.16GHz
model name      : Intel(R) Core(TM)2 Duo CPU     E8500  @ 3.16GHz

出力

-march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32
--param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2