[U-Boot] [RFC][PATCH] Update malloc to dlmalloc version 2.8.4

Scott Wood scottwood at freescale.com
Tue Jul 7 22:25:14 CEST 2009


Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 15:02 Tue 07 Jul     , Scott Wood wrote:
>> Kumar Gala wrote:
>>> Those would help if the data structs had gotten bigger.  In this case  
>>> the code itself is just larger.
>> Perhaps we should look into using/writing a malloc implementation that 
>> takes a space/speed tradeoff more in line with U-boot's requirements 
>> (using a simple first-fit linear scan of free blocks, for example) -- 
>> and hopefully more readable than dlmalloc?
>>
>> I nominate those with the tightest space requirements to do this. :-)
> I agree it's sound a better plan
> but I'll take a lot's of time

Right, for now we can use the existing malloc with -fno-strict-aliasing.

-Scott


More information about the U-Boot mailing list