dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: another 8MB upgrade success story

Re: another 8MB upgrade success story

From: Gerald Clark <>
Date: Thu, 20 Mar 2003 18:59:59 -0600

-----Original Message-----
    From: "Daniel Stenberg"<>
    Sent: 3/20/03 7:28:53 AM
    To: "Gerald Clark"<>
    Cc: "Rockbox"<>
    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.
Received on 2003-03-21

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy