Mail Archives: pgcc/1998/01/25/00:38:51
--495383553-1169529124-885710338=:12955
Content-Type: TEXT/plain; CHARSET=US-ASCII
Attached is the diff file that I use to put pentium optimizations flags
into the kernel make files. I'm no expert... so other feel FREE to
prove this method wrong :-)
BTW: This turns off SMP too.
On 23 Jan, Russell mikunda wrote:
> I have installed and would like to know how to have the pgcc compile the
> kernel for
> a pentium ??, I went into the Makefile for the kernel and added the
> -mpentium and
> changed the -02 to -06, But I'm not sure if that was the right thing to
> do or not.
> here is how it was doing it.....
>
> gcc -D__KERNEL__ -I/hda2/linux/include -Wall -Wstrict-prototypes -O6
> -fomit-frame-pointer -mpentium -pipe -fno-strength-reduce -m486
> -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
> -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c
>
> I have a pentium 166
>
> Please reply to me at rkn AT ipa DOT net
--495383553-1169529124-885710338=:12955
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Description: opt.diff
diff -u --recursive --new-file linux-2.1.80-4/Makefile linux/Makefile
--- linux-2.1.80-4/Makefile Mon Jan 19 13:41:45 1998
+++ linux/Makefile Mon Jan 19 13:39:31 1998
@@ -11,7 +11,7 @@
#
# NOTE! SMP is experimental. See the file Documentation/SMP.txt
#
-SMP = 1
+# SMP = 1
#
# SMP profiling options
# SMP_PROF = 1
@@ -27,7 +27,7 @@
FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net
HOSTCC =gcc
-HOSTCFLAGS =-O2 -fomit-frame-pointer
+HOSTCFLAGS =-O9 -frisc -fomit-frame-pointer
CROSS_COMPILE =
@@ -88,7 +88,7 @@
# standard CFLAGS
#
-CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+CFLAGS = -Wall -Wstrict-prototypes -O9 -frisc
ifdef CONFIG_CPP
CFLAGS := $(CFLAGS) -x c++
diff -u --recursive --new-file linux-2.1.80-4/arch/i386/Makefile linux/arch/i386/Makefile
--- linux-2.1.80-4/arch/i386/Makefile Tue Oct 14 20:24:09 1997
+++ linux/arch/i386/Makefile Mon Jan 19 11:53:45 1998
@@ -23,7 +23,7 @@
LDFLAGS=-e stext
LINKFLAGS =-T $(TOPDIR)/arch/i386/vmlinux.lds $(LDFLAGS)
-CFLAGS := $(CFLAGS) -pipe -fno-strength-reduce
+CFLAGS := $(CFLAGS) -pipe
ifdef CONFIG_M386
CFLAGS := $(CFLAGS) -m386 -DCPU=386
@@ -34,7 +34,7 @@
endif
ifdef CONFIG_M586
-CFLAGS := $(CFLAGS) -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
+CFLAGS := $(CFLAGS) -mpentium -DCPU=586
endif
ifdef CONFIG_M686
--495383553-1169529124-885710338=:12955--
- Raw text -