[BusyBox-cvs] svn commit: trunk/busybox

landley at busybox.net landley at busybox.net
Sat Jun 11 22:10:43 UTC 2005

Author: landley
Date: 2005-06-11 16:10:42 -0600 (Sat, 11 Jun 2005)
New Revision: 10529

Note that memory allocaiton needs to be cleaned up too.


Modified: trunk/busybox/TODO
--- trunk/busybox/TODO	2005-06-11 20:29:02 UTC (rev 10528)
+++ trunk/busybox/TODO	2005-06-11 22:10:42 UTC (rev 10529)
@@ -105,3 +105,15 @@
   util-linux, and vim.  Anything that's wrong with the resulting system, we
   can fix.  (It would be nice to be able to upgrade busybox to be able to
   replace bash, diffutils, gzip, less, and patch as well.)
+Memory Allocation
+  We have a CONFIG_BUFFER mechanism that lets us select whether to do memory
+  allocation on the stack or the heap.  Unfortunately, we're not using it much.
+  We need to audit our memory allocations and turn a lot of malloc/free calls
+  And while we're at it, many of the CONFIG_FEATURE_CLEAN_UP #ifdefs will be
+  optimized out by the compiler in the stack allocation case (since there's no
+  free for an alloca()), and this means that various cleanup loops that just
+  call free might also be optimized out by the compiler if written right, so
+  we can yank those #ifdefs too, and generally clean up the code.

More information about the busybox-cvs mailing list