Date: Fri, 27 Sep 1996 20:49:19 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, phk@critter.tfs.com Cc: current@freebsd.org, julian@whistle.com Subject: Re: BLOAT in minimal programs Message-ID: <199609271049.UAA20273@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>>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. > >Malloc doesn't use stdio if you don't define MALLOC_STATS in it... > >I'm not to happy about that being the default, it doesn't matter for >shlib cases, but for static programs it's a pain. atexit() could use sbrk() instead of malloc(). This would work fairly well since atexit() rarely needs to expands its default of 32 pointers (even 32 is wasteful) and never frees its memory. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609271049.UAA20273>