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

Rockbox mail archive

Subject: Re: Stack Usage

Re: Stack Usage

From: BlueChip <>
Date: Thu, 01 Jan 2004 08:20:56 +0000

At 04:04 01/01/04, you wrote:
>Is there a way to tell how much stack is used? I'm trying to reduce the
>amount I use for bookmarking and would like to see if the tweaks I am doing is
>actually having an effect. I noticed that there is a "View OS Stacks" option,
>but I don't understand what it is showing.

from my experience of reversing C code...

to save stack space:

local variables
recursive algorithms
& other deep call structures (proc1->proc2->proc3->proc4->...)

replace tiny (2/3 lines) functions with macros
pass parameters between procedures via global (or broad scope) variables

obviously each has an impact on other aspects using macros generates
larger code (which runs faster ...mainly because of the lack of stack
useage - lol)

Received on 2004-01-01

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