From owner-freebsd-questions Sun Jan 12 09:26:00 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA06071 for questions-outgoing; Sun, 12 Jan 1997 09:26:00 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA06066 for ; Sun, 12 Jan 1997 09:25:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id JAA25580; Sun, 12 Jan 1997 09:24:20 -0800 (PST) Message-Id: <199701121724.JAA25580@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Andrew cc: questions@freebsd.org Subject: Re: Compiling kernel with optimisation In-reply-to: Your message of "Mon, 13 Jan 1997 03:32:44 +1100." From: David Greenman Reply-To: dg@root.com Date: Sun, 12 Jan 1997 09:24:20 -0800 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I just noticed that when compiling a kernel it is done with the -O flag. >Would there be much speed improvement in the sytem if it was done with >-O3? Would this break the kernel or is the added time it takes to compile >not worth the benfits? It has very little effect on performance and optimizations levels > "-O" have traditionally been broken in gcc. >I'd try myself but it takes me 4.5 hours just to do the kernel with -O :-( Then you need to add some memory, then. It shouldn't be anywhere near that slow. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project