RE: [uClinux-dev] malloc 101 in uClinux

2007-12-02 Thread Gavin Lambert
Quoth Greg Ungerer: > In this example it is better to malloc(1000) than 1000 malloc(1)'s. > Lots of small allocations is slow and generally not good for > fragmentation. > > "Small" in this case is a relative thing. Large allocations (especially > say larger than about 64k) can be difficult for th

Re: [uClinux-dev] malloc 101 in uClinux

2007-12-02 Thread Greg Ungerer
Hi Tiberiu, Tiberiu Motoc wrote: I have some questions about memory allocation in uClinux for the ARM architecture. I found out that there are 2 memory allocation functions: malloc and malloc-simple. I think the article was on Blackfin, but I think same applies to ARM. Anyway, I also read th