Date: Mon, 27 Nov 2000 18:42:24 -0500 (EST) From: Kenneth Culver <culverk@culverk.student.umd.edu> To: Alfred Perlstein <bright@wintelcom.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: compiler optimizations Message-ID: <Pine.BSF.4.21.0011271840470.415-100000@culverk.student.umd.edu> In-Reply-To: <20001127135408.P8051@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alright, I knew how to do it but thanks :-) Anyway, I compiled with -Os -march=pentiumpro and my kernel started randomly panicing on heavy disk activity (once starting netscape, and once syncing disks) so I think I'll just stick with the defaults. ================================================================= | Kenneth Culver | FreeBSD: The best NT upgrade. | | Unix Systems Administrator | ICQ #: 24767726 | | and student at The | AIM: muythaibxr | | The University of Maryland, | Website: (Under Construction) | | College Park. | http://www.wam.umd.edu/~culverk/| ================================================================= On Mon, 27 Nov 2000, Alfred Perlstein wrote: > * Kenneth Culver <culverk@culverk.student.umd.edu> [001127 13:47] wrote: > > I'm just curious about something. I noticed the other day that the entire > > linux kernel is compiled with options -O2 -m486. I was wondering if this > > really causes any performance increase and was also wondering if there is > > anywhere on the web that can show this. I am wondering because I was going > > to use these options with FreeBSD (or -march=pentiumpro or -mpentiumpro, > > and -Os instead of -O2). > > Yes, the optimization works, however because we still want to support > 386s and because of bad experiances with the gcc optimizer in the > past we don't really like to debug problems with kernels that have > high levels of optimization because sometimes it's gcc's fault (or > at least it could be in the past). > > If you want to compile the kernel and world like that edit /etc/make.conf > and add your options to CFLAGS: > > CFLAGS= -O -pipe > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > "I have the heart of a child; I keep it in a jar on my desk." > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011271840470.415-100000>