-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Will Clifton wrote: | I have a question about my make.conf for my new P4 Prescott 3.2. Before I get | too busy installing I want to set my CFLAGS to get the most out of my chip. Is | the following too much? I'm not a programmer, but this is what I got out of | reading some forum posts and man gcc. I also read the setting the - -march flag to "prescott" causes | problems. Has any one else experienced this? | | Any opinions are appreciated. | | cflags=-O3 -mcpu=pentium4 -march=pentium4 -mmmx -msse -m3dnow | -fomit-frame-pointer -pipe
- -O3 is generally discouraged (it may break some packages), but if you want to "get the most out of your chip", it is what you want.
- -mmmx, -msse -m3dnow are implied by -march and thus are redundant.
You might want to add -ftracer. It provides some extra information for the compiler to improve later optimizations and is safe (i.e., it might speed up your apps, but never slows them down or increases their size).
In general please don't add every flag to your make.conf that looks really cool. Usually these tend to break stuff rather than improving anything. Also CFLAGS are no "magic speed boosters". The difference between (the usually safe) -O2 and -O3 is usually negligibly small (or even zero), for the price of a potential unstable system. You have been warned. :)
| chost=i686-pc-linux-gnu | makejopts="-j3" ( because of the 2 virtuals cpus?? )
Yes. The -j flag should be set to num(CPU) + 1. Since your CPU has HT technology, you virtually have two CPUs.
| Also, will I be wanting to enable SMP support in my kernel? I read that | somewhere too.
You definitely want SMP (see above).
Regards, Karsten -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCFiCAgUNlsZQzobwRAkiOAJsH4RH3zY9eeykP0d1VArFIEFVF9ACdGaw0 OVgu7v74k8qo38VmoP3GCWA= =K6Ho -----END PGP SIGNATURE-----
-- [email protected] mailing list
