En Sat, Aug 18, 2001 at 11:15:57PM +0800, Federico Sevilla III escribio:
#_ On Sat, 18 Aug 2001 at 23:03, Juan Miguel Cacho wrote:
#_ > Then I edit the Makefile to include -O6 -mpentiumpro -march=pentiumpro
#_ > etc. etc.
#_ 
#_ Holy smokes!!! You're crazier than I! I never compile my kernel with
#_ anything higher than -O2. The kernel config automatically puts
#_ "-march=i686" when you select an i686 class processor, so I leave it as
#_ is.
#_ 
#_ Besides, from the DebianPlanet discussions I've found that CPU
#_ optimization for programs does not always improve performance. For such
#_ applications like gzip and bzip2 it does, but for others, I don't think
#_ it's worth the recompile. Or maybe I'm wrong?

This is how crazy I am: in /etc/profile I put in a variable:

BOYOYOY="-O6 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s
         -mpentiumpro -mcpu=pentiumpro -march=pentiumpro -ffast-math
         -fexpensive-optimizations -malign-loops=2 -malign-jumps=2
     -malign-functions=2 -mpreferred-stack-boundary=2 -fno-strength-reduce"
#(I don't remember where and when I got all this cr*p)

export BOYOYOY



When I edit a Makefile, I just put in:

CFLAGS = $(BOYOYOY)
(I do this for /usr/src/linux/Makefile)

In /usr/src/linux/arch/i386/Makefile; I change "-march=i686" to
"-march=pentiumpro"

Sheeez talk about anal ;->
-- 
Juan Miguel Cacho       [EMAIL PROTECTED] 
Philippines
...the poor count their blessings, the affluent count their calories.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to