From owner-freebsd-current Mon Apr 5 23:53:37 1999 Delivered-To: freebsd-current@freebsd.org Received: from ACC.sim.net.ua (ACC.sim.net.ua [62.244.20.221]) by hub.freebsd.org (Postfix) with ESMTP id 218FF1544C for ; Mon, 5 Apr 1999 23:53:29 -0700 (PDT) (envelope-from pasha@sim.net.ua) Received: from GW.sim.net.ua (GW.sumy.net [62.244.20.220]) by ACC.sim.net.ua (8.9.3/8.8.4) with SMTP id JAA21242 for ; Tue, 6 Apr 1999 09:51:29 +0300 (EEST) Message-ID: <3709AEF1.446B9B3D@sim.net.ua> Date: Tue, 06 Apr 1999 06:51:29 +0000 From: Pavel Narozhniy X-Mailer: Mozilla 3.04 (X11; I; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: current@FreeBSD.ORG Subject: Re: EGCS optimizations References: <199904060525.WAA04269@apollo.backplane.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Dillon wrote: > > :Totally informally, I replaced libc (compiled with -O2) with one compiled > :with -mpentiumpro and -O6, and compiling kdebase seemed to run a bit > :slower (GNU make took longer to traverse directories and egcs took a bit > :longer to run). > : > :> Which leads me to believe that using -Os might be beneficial. > : > :Have you tried anything beyond -O2? > : > :- alex > > There is nothing beyond -O2. Well, there's -O3, which tries to > inline static functions, but that typically isn't beneficial because > it really bloats up the code and subroutine calls on intel cpus are > very fast. > > The only other optimization that might be useful is -fomit-frame-pointer, > but it makes debugging impossible. I don't have oppurtunity to use CURRENT, but on 3.1-RELEASE and 2.2.8 -fomit-frame-pointer applied to kernel compilation leads to system crash. If you want to reproduce this, compile kernel with -O -fomit-frame-pointer, reboot, and try, for example, to build kernel with make -j 16 ;) > -Matt > Matthew Dillon > -- Pavel Narozhniy nic-hdl: PN395-RIPE http://www.sumy.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message