From owner-freebsd-hackers Thu Apr 11 12:43:51 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA05104 for hackers-outgoing; Thu, 11 Apr 1996 12:43:51 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA05097 for ; Thu, 11 Apr 1996 12:43:42 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.6.12/8.6.12) with ESMTP id MAA03043; Thu, 11 Apr 1996 12:42:30 -0700 Message-Id: <199604111942.MAA03043@rah.star-gate.com> X-Mailer: exmh version 1.6.5 12/11/95 To: Tony Kimball cc: hackers@freebsd.org Subject: Re: pgcc kernel compiles automated In-reply-to: Your message of "Thu, 11 Apr 1996 13:47:59 CDT." <199604111847.NAA00908@compound.think.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 11 Apr 1996 12:42:30 -0700 From: "Amancio Hasty Jr." Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Does the new kernel run any faster ? Tnks, Amancio >>> Tony Kimball said: > > To eliminate those annoying manual interventions in making kernels > using pgcc, here is a trivial script. I just say 'make CC=ccc' > It assumes that the distribution cc is renamed to kcc, pgcc is > installed as gcc > > # > #!/bin/sh > # > # /usr/local/bin/ccc > # > # script to permit optimal compilation of the kernel using pgcc > # with work-arounds for bugs and other inconveniences > # > > > for i in $* > do > case $i in > ../../kern/kern_xxx.c) # pgcc bug -- use this as an > # opportunity to hook in the > # missing run-time without > # touching the makefile > if gcc $* ../../libkern/muldi3.c ; then > echo gcc -O compile done > ld -r -o kern_xxx2.o kern_xxx.o muldi3.o || exit 1 > mv -f kern_xxx2.o kern_xxx.o > exit 0; > else > echo kern_xxx gcc -O failed > exit 1 > fi > ;; > *) > ;; > esac > done > > if ! gcc -O6 -fomit-frame-pointer $* ; then # pgcc bug > rm -f cc1.core > if ! gcc -O3 -fomit-frame-pointer$* ; then # assembly syntax problem > rm -f cc1.core > if ! kcc -O $* ; then # *your* problem > echo All compilers failed. > exit 1 > else > echo kcc -O compile done. > fi > else > echo gcc -O3 compile done. > fi > else > echo gcc -O6 compile done. > fi > exit 0 > > >