On 7/29/07, Denis Vlasenko <[EMAIL PROTECTED]> wrote: > On 7/23/07, Bernhard Fischer <[EMAIL PROTECTED]> wrote: > > >These six patches make uclibc malloc big(ger) buffers instead of > > >keeping them in data/bss - should help NOMMU people. > > > > > >patch #1: introduce __uc_malloc, so that users can intercept OOM. > > >patch #2: convert des.c to use __uc_malloc (-70 kbytes of bss) > > >patch #3: convert resolv.c > > >patch #4: convert pwd_grp.c > > >patch #5: convert utent.c, getpass.c > > >patch #6: convert getnetent.c, md5.c > > > > > >This deals with almost all buffers bigger than 100 bytes. > > >We pay in code size for that (+20 - +40 bytes per module > > >on i386): > > > > Sounds like a good idea to me, fwiw. > > The '//' comments should be converted to '/**/' imo, but that's just > > cosmetics. Also, i think that you should hide all stuff that is exported > > in __uc_malloc.c (see hidden_proto/hidden_def et al). > > Care to take this into account? > > Will do. Things slowed down here due to dead ISP link at home.
// are fixed. I don't quite understand how to do hiding of __uc_malloc and __uc_malloc_failed. I see several different usage patterns for XXX_hidden_XXX macros, and also see open-coded attribute defs. I will apply patches without attempting to do this hiding stuff. Can fix it later when I will understand this stuff better. -- vda _______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
