Hi,
I have a server with Intel Xeon CPU E5-2620 2.00GHz on it installed FreeBSD 9 STABLE.
The system and the ports was rebuilt using Сlang
How can I optimize the code when building the system to the processor architecture?
Can I use Clang with the settings in /etc/make.conf "CPUTYPE?=", "CFLAGS=", "CXXFLAGS+=" and "COPTFLAGS="?
I have a server with Intel Xeon CPU E5-2620 2.00GHz on it installed FreeBSD 9 STABLE.
Code:
CPU: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz (2000.04-MHz K8-class CPU)
Origin = "GenuineIntel" Id = 0x206d7 Family = 0x6 Model = 0x2d Stepping = 7
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x1fbee3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX>
AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
AMD Features2=0x1<LAHF>
TSC: P-state invariant, performance statistics
Code:
# uname -a
FreeBSD Leon 9.1-STABLE FreeBSD 9.1-STABLE #0 r246404: Wed Feb 6 16:40:12 EET 2013 root@Leon:/usr/obj/usr/src/sys/GENERIC amd64
The system and the ports was rebuilt using Сlang
Code:
# clang -v
FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: x86_64-unknown-freebsd9.0
Thread model: posix
Code:
# cat /etc/make.conf
CC=clang
CXX=clang++
CPP=clang-cpp
NO_WERROR=
WERROR=
NO_FSCHG=
How can I optimize the code when building the system to the processor architecture?
Can I use Clang with the settings in /etc/make.conf "CPUTYPE?=", "CFLAGS=", "CXXFLAGS+=" and "COPTFLAGS="?