From owner-freebsd-current@FreeBSD.ORG Fri May 25 14:02:51 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 F1C9F16A400 for ; Fri, 25 May 2007 14:02:51 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 40AF713C43E for ; Fri, 25 May 2007 14:02:50 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 25 May 2007 14:02:49 -0000 Received: from h081217094222.dyn.cm.kabsi.at (EHLO taxman.pepperland) [81.217.94.222] by mail.gmx.net (mp043) with SMTP; 25 May 2007 16:02:49 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX18T/6EgvAATN+9bZC5heCWIEXyTpEiIXVyXwj+NJ6 V9TpNw6A3SQHlN From: Stefan Ehmann To: freebsd-current@freebsd.org Date: Fri, 25 May 2007 16:02:47 +0200 User-Agent: KMail/1.9.6 References: <20070525095146.GA45288@freebsd.org> In-Reply-To: <20070525095146.GA45288@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705251602.48778.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: Roman Divacky 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 14:02:52 -0000 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 That -Os produces a much larger kernel image looks worrying. Can anyone confirm this? I used make COPTFLAGS="-Os -pipe" buildkernel. For comparision, a stripped (uncompressed) debian unstable kernel (2.6.20): gcc 3.4: 2655188 gcc 4.2: 2595948 It seems the kernel is compiled with -Os by default. with -O2: gcc 3.4: 3036116 gcc 4.2: 2956568 Stefan