[Toybox] I need to do a FAQ...

Rob Landley rob at landley.net
Mon Feb 13 19:15:28 PST 2012


Not hugely important, and I need to replace "bloatcheck" since it's gpl
(just a wrapper around nm --size-sort really), but here's a thing you
can do:

  make distclean
  make defconfig
  make baseline
  cp ~/basename.c toys
  make bloatcheck

function                                            old     new   delta
basename_main                                       163     136     -27
-----------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-27)            Total: -27
bytes

Fun little toy.  Size isn't my _first_ priority, but it's nice to be
able to see what changes actually do.  (Mostly this change replaces 4
lines with 2 lines, but making the resulting binary smaller is a nice
fringe benefit.  I've generally found making the code simpler _does_
make it smaller, but sometimes I wind up defeating the optimizer and
revert the change because of it...)

Rob

 1329189328.0


More information about the Toybox mailing list