[PATCH] attempt to reduce size in readlink

Tito farmatito at tiscali.it
Sat Sep 17 11:50:47 UTC 2005


On Saturday 17 September 2005 13:14, Rob Landley wrote:
> On Friday 16 September 2005 06:45, Tito wrote:
> > Hi,
> > this is just a proposal to reduce size of readlink.
> > I personally don't like this coding style so much,
> > so Rob it is up to you if you want to apply it.
> 
> I redid it with a different coding style that, unfortunately, involves three 
> tests of the ENABLE guard.
> 
> I'm not sure how much of an improvement it is over your version, but it's 
> checked in now.
> 
> Rob
> 
Hi,
Works fine and looks better than my version.
The size is the same:
root at localhost:/dev/pts/4:/root/Desktop/busybox# size debianutils/readlink_with_f.o
   text    data     bss     dec     hex filename
     98       0       0      98      62 debianutils/readlink.o
root at localhost:/dev/pts/4:/root/Desktop/busybox# size debianutils/readlink_no_f.o
   text    data     bss     dec     hex filename
     46       0       0      46      2e debianutils/readlink.o
root at localhost:/dev/pts/4:/root/Desktop/busybox#

Ciao,
Tito



More information about the busybox mailing list