Date: Thu, 11 Apr 1996 12:42:30 -0700 From: "Amancio Hasty Jr." <hasty@rah.star-gate.com> To: Tony Kimball <alk@Think.COM> Cc: hackers@freebsd.org Subject: Re: pgcc kernel compiles automated Message-ID: <199604111942.MAA03043@rah.star-gate.com> In-Reply-To: Your message of "Thu, 11 Apr 1996 13:47:59 CDT." <199604111847.NAA00908@compound.think.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604111942.MAA03043>