Rockbox mail archiveSubject: RE: Memory management
From: Nielsen Linus (ext) (Linus.Nielsen_at_elema.siemens.se)
> In the last few days I've been working on a text file viewer
No, it isn't. If you look in the OS debug screen you will see that the
> What happens if we go over this limit ?
You will eventually get a Stkov error, if you don't crash before the kernel
> - When we declare a global variable (not in a function), is
Globals are, naturally, not allocated on the stack.
> - The decision was made to not use dynamic memory allocation
Malloc is still in the source tree, but is not used. Don't attempt to use
> What I'm trying to do is to load the content of the file in a
If you really need 30K buffer for some reason you should allocate it
Page was last modified "Jan 10 2012" The Rockbox Crew