Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: another 8MB upgrade success story
From: Gerald Clark (gerald_clark_at_mindspring.com)
Date: 2003-03-21


-----Original Message-----
    From: "Daniel Stenberg"<daniel_at_haxx.se>
    Sent: 3/20/03 7:28:53 AM
    To: "Gerald Clark"<gerald_clark_at_mindspring.com>
    Cc: "Rockbox"<rockbox_at_cool.haxx.se>
    Subject: Re: another 8MB upgrade success story
    
    On Thu, 20 Mar 2003, Gerald Clark wrote:
    
> Dynamic allocation should be fairly simple if only malloc is implemented
> with no release. Use a static table of *char,int values for buffer pointers
> and sizes. Allocate all buffers first, then enter the main routine.
    
    And the benefit of doing like this would be... ?
    
The ability to allocate different sized blocks of memory based on total size or config values.
You have to allocate your buffers now, don't you?
The statement was made that dynamic allocation was too complicated .
That is only true if you also implement release and reuse of memory.
If you only allow for dynamically sized allocation from the total memory pool, without realloc() or free() type functions, then it does not have to be difficult at all.



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa