On 02/24/12 12:16, Peter Maydell wrote: > On 24 February 2012 10:39, Gerd Hoffmann <kra...@redhat.com> 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