SUSv3 who for Busybox

walter harms wharms at bfs.de
Wed Jan 21 14:24:25 UTC 2009



Vladimir Dronnikov schrieb:
>>> # (cd coreutils; ../scripts/objsizes | grep who)
>> IMHO this is only useful if you plan to compare against something.
>>
> 
> Indeed! Get the result for your current code. Your starting point will
> be that "something". Then try to make it less.
> 

mmh, ok, i should mention that i made a lot of small changes that
in the last weeks that reduced the size already considerably.
actually i would prefer functional bug reports before i reduce the size even more.



>>> Then consider replacing excessive use of option_mask32 with a local
>>> unsigned opt (which can be optimized to be register).
>>>
>> the mask is global and used in one subroutine.
> 
> But more than once. Global would result in accessing data segment.
> Local could be cached in a register. AFAI can remember. Just try.
> 
>>> Why does es exists at all if it is useless?
> 
> Just suppose you have a subroutine whose behavior depends on flags
> obtained in main(). Then instead of introducing a parameter you could
> refer global flags.
>
	i think i got the point.
        using opt=getopt() in "main" and option_mask32 in "function" ?
	it sounds like an S+R operation.

re,
 wh

> Regards,
> --
> Vladimir
> 
> 
> 


More information about the busybox mailing list