Страница 1 из 1

И снова make.conf

Добавлено: 2010-12-15 13:26:31
vadim64
Читаю:
[quote=/usr/share/examples/etc/make.conf]# The CPUTYPE variable controls which processor should be targeted for
# generated code. This controls processor-specific optimizations in
# certain code (currently only OpenSSL) as well as modifying the value
# of CFLAGS to contain the appropriate optimization directive to gcc.
# The automatic setting of CFLAGS may be overridden using the
# NO_CPU_CFLAGS variable below.
# Currently the following CPU types are recognized:
# Intel x86 architecture:
# (AMD CPUs) opteron athlon64 athlon-mp athlon-xp athlon-4
# athlon-tbird athlon k8 k6-3 k6-2 k6 k5
# (Intel CPUs) core2 core nocona pentium4m pentium4 prescott
# pentium3m pentium3 pentium-m pentium2
# pentiumpro pentium-mmx pentium i486 i386
# (Via CPUs) c3 c3-2
# Alpha/AXP architecture: ev67 ev6 pca56 ev56 ev5 ev45 ev4
# AMD64 architecture: opteron, athlon64, nocona, prescott, core2
# Intel ia64 architecture: itanium2, itanium
#
# (?= allows to buildworld for a different CPUTYPE.)
#[/quote]
Не понимаю(или не вижу, потому что не написано): для башки

Код: Выделить всё

# dmesg -a | grep CPU
CPU: AMD Athlon(tm) MP (1211.94-MHz 686-class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
SMP: AP CPU #1 Launched!
# 
эффективнее будет

Код: Выделить всё

# cat /etc/make.conf | grep CPUTYPE
CPUTYPE?=athlon-mp
# 
или

Код: Выделить всё

# cat /etc/make.conf | grep CPUTYPE
CPUTYPE?=k7
# 
????
По логике множество "athlon-mp" менее обширно, чем множество "k7." То есть, при условии что опции отработают правильно, заточка будет острее. Но какие то сомнения, как сделать максимально правильно.

Re: И снова make.conf

Добавлено: 2010-12-15 13:39:16
hizel
native

Re: И снова make.conf

Добавлено: 2010-12-15 13:52:12
vadim64
А можно разъяснить?
Пжлст.

Re: И снова make.conf

Добавлено: 2010-12-15 14:06:01
hizel

Re: И снова make.conf

Добавлено: 2010-12-15 14:16:28
vadim64
Следуя первому результату поиска, впал в рекурсию

Re: И снова make.conf

Добавлено: 2010-12-15 14:33:36
Neus
CPUTYPE=native
и не забивать моск :)

Re: И снова make.conf

Добавлено: 2010-12-19 19:33:37
Гость
как сделать максимально правильно.

Код: Выделить всё

NO_CPU_CFLAGS=
NO_CPU_COPTFLAGS=
CFLAGS= -march=athlon-mp -O2 -pipe -fomit-frame-pointer
COPTFLAGS= -march=athlon-mp -O2 -pipe -fomit-frame-pointer
CPUTYPE вобще не трогай обрати внимание -
certain code (currently only OpenSSL) as well as modifying the value