From owner-freebsd-current@FreeBSD.ORG Fri May 25 15:05:22 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B71416A421 for ; Fri, 25 May 2007 15:05:22 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id EBA4B13C45B for ; Fri, 25 May 2007 15:05:21 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 6A4C48BFACB; Fri, 25 May 2007 17:05:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3okXlfT5PV2L; Fri, 25 May 2007 17:05:18 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 977378BFABB; Fri, 25 May 2007 17:05:18 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l4PF5IjQ063618; Fri, 25 May 2007 17:05:18 +0200 (CEST) (envelope-from rdivacky) Date: Fri, 25 May 2007 17:05:17 +0200 From: Roman Divacky To: Stefan Ehmann Message-ID: <20070525150517.GA63514@freebsd.org> References: <20070525095146.GA45288@freebsd.org> <200705251602.48778.shoesoft@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705251602.48778.shoesoft@gmx.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-current@freebsd.org Subject: Re: size of kernel after gcc4.2 upgrade X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2007 15:05:22 -0000 On Fri, May 25, 2007 at 04:02:47PM +0200, Stefan Ehmann wrote: > On Friday 25 May 2007 11:51:46 Roman Divacky wrote: > > hi > > > > I just noticed that > > spravci ~# ls -l /boot/kernel*/kernel > > -r-xr-xr-x 1 root wheel 3389971 May 18 12:03 /boot/kernel.old/kernel* > > -r-xr-xr-x 1 root wheel 5211345 May 25 11:47 /boot/kernel/kernel* > > > > ie. after gcc42 import the kernel size increased roughly by 60% thats > > a little too much. is there any forgotten option or something that > > makes the kernel grow so big? > > While I also see an increase, it's not that much. > > GENERIC from today's current, also compiled with gcc34 from ports (I had to > delete two gcc options in sys/conf/kern.mk): > > gcc34: 6530916 > gcc42: 7352560 > gcc34 -Os: 6074468 > gcc42 -Os: 10058032 yes, thats it! I also used -Os. it looks like this occurs only with -Os optimization level. can someone else confirm this? and/or possibly explain this? thnx roman