> On Dec 8, 2015, at 16:58, Mario Lobo <l...@bsd.com.br> wrote: > > On Tue, 8 Dec 2015 16:14:19 -0200 > Tiago Ribeiro <sha...@gmail.com> wrote: > >> Olá, alguém ai ainda utiliza do parâmetro CPUTYPE no /etc/make.conf , >> ou está em desuso ? >> Faz algum sentido ainda definir este parâmetro? >> >> >> — >> http://www.bsdjf.com.br >> >> ------------------------- >> Histórico: http://www.fug.com.br/historico/html/freebsd/ >> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > Eu sempre faço os seguintes testes: > > gcc48 -march=native -v -c -x c /dev/null 2>&1 | grep -- -march > > Resultado: > > /usr/local/libexec/gcc48/gcc/x86_64-portbld-freebsd10.0/4.8.4/cc1 > -quiet -v /dev/null > --------------- > -march=bdver2 > -------------- > -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mabm -mlwp -mfma > -mfma4 -mxop -mbmi -mno-bmi2 -mtbm -mavx -mno-avx2 -msse4.2 -msse4.1 > -mlzcnt -mno-rtm -mno-hle -mno-rdrnd -mf16c -mno-fsgsbase -mno-rdseed > -mprfchw -mno-adx -mfxsr -mxsave -mno-xsaveopt --param > l1-cache-size=16 --param l1-cache-line-size=64 --param > l2-cache-size=2048 -mtune=bdver2 -quiet -dumpbase null -auxbase null > -version -o /tmp//ccIyljMS.s COLLECT_GCC_OPTIONS='-march=native' '-v' > '-c' COLLECT_GCC_OPTIONS='-march=native' '-v' '-c' > > clang -march=native -v -c -x c /dev/null 2>&1 | grep -- target-cpu > > Resultado: > > "/usr/bin/clang" -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj > -mrelax-all -disable-free -disable-llvm-verifier -main-file-name null > -mrelocation-model static -mdisable-fp-elim -masm-verbose > -mconstructor-aliases -munwind-tables > ------------------ > -target-cpu bdver1 > ------------------ > -v -coverage-file /root/null.o > -resource-dir /usr/bin/../lib/clang/3.4.1 -fdebug-compilation-dir /root > -ferror-limit 19 -fmessage-length 0 -mstackrealign > -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-slp -o > null.o -x c /dev/null > > Escolho o "menor" e coloco no make.conf
Apenas a título de curiosidade. Você alguma vez mediu qual é o ganho real disso em processadores modernos? []s -- Renato Botelho ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd