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: Wavpack recording.

Re: Wavpack recording.

From: Thom Johansen <thomj_at_pvv.ntnu.no>
Date: 2006-02-12

gl wrote:

>> We don't use malloc and free in Rockbox. Allocate whatever memory you
>> need with static buffers.
>
>
> Those two buffer sizes are unknown at compile time: one I can talk to
> David about, the other because I was anticipating packing to various
> formats, eg. 8bit. I guess I could statically allocate the max.
> possible size but this seems wasteful.
>
If we used malloc(), we'd need to keep this amount of memory free in
case it would be
needed anyway, so it's just as wasteful as using malloc.

>> Like I said above, the Wavpack code uses IRAM in places.
>
>
> Where? I can't see any IDATA_ATTR - is there anything else that
> declares or implies IRAM use?

IDATA_ATTR is for data that is initialised. Then you have IBSS_ATTR for
data which is
uninitialised, and ICONST_ATTR for constant data (lookup tables and the
like).

Thom
Received on Sun Feb 12 17:19:01 2006


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