You are not logged in.

#1 2009-05-18 20:34:42

Raizha_Phyrok
Member
Registered: 2007-10-27
Posts: 38

What cflags should I use?

Hi, can somebody help me to identify my processor's codename? I don't know if should put pentium4 or prescott, this is the cat /proc/cpuinfo output:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 3
model name      : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping        : 4
cpu MHz         : 3191.963
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : 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 ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr
bogomips        : 6386.92
clflush size    : 64
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 3
model name      : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping        : 4
cpu MHz         : 3191.963
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 1
initial apicid  : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : 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 ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr
bogomips        : 6386.48
clflush size    : 64
power management:

It seems to be two cores cause hyperthreading is enabled. Is an pentium 4 @ 3.2 GHz on a acer aspire 1800 laptop (not a pentium 4 mobile i guess) thanks


Requiescat In Pain.

Offline

#2 2009-05-18 20:43:57

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: What cflags should I use?

CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"

should be fine for everyone, maybe replace -O2 by -Os to get less optimized, but smaller binaries

Offline

Board footer

Powered by FluxBB