On Sat, May 03, 2008 at 07:19:11PM +0300, Oron Peled wrote: > On Friday, 2 בMay 2008, Shachar Shemesh wrote: > > Re Choo's comment about memory available through "malloc" working for > > him - malloc uses "brk(2)" to allocate memory as long as it possibly > > can. > > That was what I always thought. However, I found out lately > that uclibc (in which you can compile one of three different > allocators) uses mmap *exclusively* for heap management > (which makes a lot of sense for MMU-less machines).
Just tried a statically-linked i386 uclibc busybox I have, and it does seem to use brk rather than mmap. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849754 | | friend ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
