Date: Fri, 27 Sep 1996 10:42:48 +1000 From: Bruce Evans <bde@zeta.org.au> To: julian@whistle.com, phk@critter.tfs.com Cc: current@freebsd.org Subject: Re: BLOAT in minimal programs Message-ID: <199609270042.KAA02056@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>>I wanted to write a minimal footprint program >>that would be as tiny as possible.. > >recompile libc with at least this change in libc/stdlib/malloc.c: > >#undef MALLOC_STATS Even better: don't use malloc(): main() {} atexit() {} atexit() is normally linked to and references malloc(), although it only calls malloc() when there are a lot of atexits. malloc() now uses stdio and stdio uses half the universe. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609270042.KAA02056>