> On Saturday, 5 July 2014, 23:16, tito <[email protected]> wrote: > > On Saturday 05 July 2014 20:32:18 bifferos wrote: > scripts/bloat-o-meter busybox_old busybox_unstripped > function old new delta > pr_level_exit 27 - -27 > mixer_main 385 335 -50
I think the size I'm seeing must be something to do with the ancient cross compiler I'm using. > argc -= optind; Dammit! I was looking for optind but somehow missed it. I suppose I was expecting opt_<something>. Will have to re-write my other applets to use it, thanks. I'm just working on a 'button' applet for GPIO buttons, will finish that and come back to this one later. / # button BusyBox v1.22.1 (2014-06-23 15:19:41 BST) multi-call binary. Usage: button [-t <delay>] [-F] BUTTON HELPER Execute HELPER when button BUTTON is pressed -t N Set the sampling period (debounce period, mS) -h Exec when gpio goes high (default: low) -F Run in foreground HELPER receives the button number as argv[1], count as argv[2] It's not really optimised yet, but I will incorporate suggestions from here. bash-4.2$ ./scripts/bloat-o-meter busybox_before busybox_unstripped function old new delta button_main - 659 +659 usage_messages 31150 31445 +295 button_shutdown - 83 +83 applet_names 984 991 +7 applet_main 604 608 +4 applet_nameofs 302 304 +2 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 4/0 up/down: 1050/0) Total: 1050 bytes regards, Biff. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
