Subject: Optimizing the kernel
To: None <port-alpha@NetBSD.ORG>
From: Trevor Blackwell <tlb@eecs.harvard.edu>
List: port-alpha
Date: 08/14/1995 15:51:32
I was able to boot a kernel compiled with -O, on a 3000/400.  I
couldn't get it to work using the native compiler, but it worked with
the cross compiler. I have no idea why.

It seems noticeably zippier, and the text size is 1.8M instead of 3.5M
(partly because it doesn't put the static VOP stubs in each .o).

Generally, the 950811 release seems pretty solid. I think changing
MB()/MAGIC_READ to wbflush() helped a lot. Nice work, Chris.

Here are the make options I use:

makeoptions	CC="gcc -b alpha-unknown-netbsd -V cygnus-2.6.4-950101 -O -fvolatile -fvolatile-global -nostdinc"
makeoptions	AS="/usr/local/gnu/alpha-unknown-netbsd/bin/as"
makeoptions	AR="/usr/local/gnu/alpha-unknown-netbsd/bin/ar"
makeoptions	RANLIB="/usr/local/gnu/alpha-unknown-netbsd/bin/ranlib"
makeoptions	LD="/usr/local/gnu/alpha-unknown-netbsd/bin/ld"
makeoptions	SIZE="/usr/local/gnu/alpha-unknown-netbsd/bin/size"


--
Trevor Blackwell         tlb@eecs.harvard.edu          (617) 495-8912