From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0zJi-0001UC-Cg for qemu-devel@nongnu.org; Fri, 24 Feb 2012 12:52:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0zJh-0003RV-21 for qemu-devel@nongnu.org; Fri, 24 Feb 2012 12:52:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0zJg-0003RK-QV for qemu-devel@nongnu.org; Fri, 24 Feb 2012 12:52:24 -0500 Message-ID: <4F47CE53.8020004@redhat.com> Date: Fri, 24 Feb 2012 18:52:19 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1328705653-24727-1-git-send-email-kraxel@redhat.com> <4F4768EF.5020509@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] build: allow turning off debuginfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org On 02/24/12 12:16, Peter Maydell wrote: > On 24 February 2012 10:39, Gerd Hoffmann wrote: >> On 02/08/12 13:54, Gerd Hoffmann wrote: >>> This patch adds --{enable,disable}-debug-info switches to configure >>> which allows to include/exclude the '-g' switch on the gcc & ld >>> command lines. Not building debug info reduces ressource usage >>> (especially disk) alot and is quite useful for test builds. >> >> ping? > > We've had this suggested before, haven't we? I quite like the > existing "just build with -g and strip it later" approach... > is the resource usage change really that significant? Disk usage is factor ten: [kraxel@mort qemu]$ du -sh build-* 1,7G build-debug 173M build-nodebug Build time is factor two: [build-debug] 7263.45user 805.85system 3:11:03elapsed 70%CPU (0avgtext+0avgdata 1782576maxresident)k 72784880inputs+13340840outputs (1273066major+29668783minor)pagefaults 0swaps [build-nodebug] 5329.72user 320.46system 1:34:26elapsed 99%CPU (0avgtext+0avgdata 1542848maxresident)k 116000inputs+755248outputs (255major+16535699minor)pagefaults 0swaps cheers, Gerd