[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [rfc] the 'dc' applet
From:       Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date:       2010-07-31 10:06:20
Message-ID: 1007311154260.9243 () somehost
[Download RAW message or body]

On Sat, 31 Jul 2010, walter harms wrote:

> Cristian Ionescu-Idbohrn schrieb:
> > On Fri, 30 Jul 2010, Cristian Ionescu-Idbohrn wrote:
> >
> >> On Fri, 30 Jul 2010, Denys Vlasenko wrote:
> >>
> >>> I think you messed up CFLAGS. Most likely you lost -Os while adding
> >>> -W<everything>.
> >> I might.  I'll have a look.
> >
> > Odd...  Must be something else.  I added a new target to the main
> > Makefile:
> >
> > echo:
> > 	@echo "CFLAGS='$(CFLAGS)'"
> >
> > Shows up I'm using '-O0':
> >
> > CFLAGS=' -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes
> > -Wunused -Wunused-parameter -Wunused-function -Wunused-value
> > -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement
> > -Wbad-function-cast -Wold-style-definition -fno-builtin-strlen
> > -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections
> > -fno-guess-branch-probability -funsigned-char -static-libgcc
> > -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -g
> > -O0  -march=i386 -mpreferred-stack-boundary=2'
> >
> > And that's because I build with CONFIG_DEBUG_PESSIMIZE=y in my .config.
> > Doing:
> >
> > 	$ make CONFIG_DEBUG_PESSIMIZE= bloatcheck
> >
> > shows "savings" in the 300K range:
> >
> > (add/remove: 2/545 grow/shrink: 137/1814 up/down: 32972/-321918)Total: -288946 bytes
>
> I guess source/dst is in wrong order causing a wrong sign.

You mean the negative values above?
That's because my 'baseline' is built with '-O0' and doing a 'bloatcheck'
with 'CONFIG_DEBUG_PESSIMIZE=' uses '-Os'.

> You are using -g that can easly add tremendous amounts of bytes.

Yes, I know.  I use 'CONFIG_DEBUG=y' too in my .config.

> btw: couldnt you get the information via "make V=1" ?

Of course.  But that also produces more output than I need.


Cheers,

-- 
Cristian
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic