From owner-freebsd-stable Tue Mar 28 18: 9:26 2000 Delivered-To: freebsd-stable@freebsd.org Received: from xxx.video-collage.com (xxx.video-collage.com [209.122.149.226]) by hub.freebsd.org (Postfix) with ESMTP id 3462037B523 for ; Tue, 28 Mar 2000 18:09:21 -0800 (PST) (envelope-from mi@video-collage.com) X-Relay-IP: ‚  Received: from dufus.video-collage.com (dufus [10.222.222.77]) by xxx.video-collage.com (8.9.1a/8.9.1) with ESMTP id VAA00760; Tue, 28 Mar 2000 21:09:18 -0500 (EST) From: Mikhail Teterin Received: (from mi@localhost) by dufus.video-collage.com (8.9.3/8.9.3) id VAA95858; Tue, 28 Mar 2000 21:09:17 -0500 (EST) (envelope-from mi@xxx) Message-Id: <200003290209.VAA95858@dufus.video-collage.com> Subject: Re: gcc problems In-Reply-To: <20000328160442.S1135@threads.polyesthetic.msg> from Thimble Smith at "Mar 28, 2000 04:04:42 pm" To: Thimble Smith Date: Tue, 28 Mar 2000 21:09:16 -0500 (EST) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Tue, Mar 28, 2000 at 03:23:06PM -0500, Mikhail Teterin wrote: > > [ sql_yacc.cc has to be compiled with -O0 ] > > >But is not this, where the optimization can be quite desirable? Is > >not this the query parsing code? > > You can do it with -O -fno-inline. Just add some more swap space > and then go for a walk while it compiles. It's spring - nice > weather, right? Well, with ``-O -fexpensive-optimizations -pipe -mcpu=i686 -march=i686'' compiling sql/sql_yacc.cc only took 26 minutes of one of the two PII-300 cpus I have. The machine has 320Mb of RAM and it did not even touch the swap. This is on 4.0, mysql-3.22.32 server port, patches/patch-aq removed... The source file is huge -- 414615 bytes... The resulting object file -- 424040. -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message