Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: unexplained RAM use on GCC and CrrosWorks

2005-11-21 by Gus

I think you are right! It generats a 240 byte jump table! Still seem 
to be overkill

Gus
--- In lpc2000@yahoogroups.com, "Paul Curtis" <plc@r...> wrote:
>
> Gus, 
> 
> > When I look at the memory usage in CrossStudio, I see 240 bytes 
and 
> > then when I remove any one of the "cases" the usage goes down to 
0!
> 
> *Where* do you see this and get this number from?  If it's "data" 
then
> data encompasses data placed into flash, IIRC.
> 
> > Even if this goes on the stack. 0 to 240 is a big change for 
just 
> > one more "case"
> 
> Depends upon how the case statement is codegen'd.  If it's a table-
based
> approach, I would expect a table in flash with a number of 
entries.  If
> it's if-then-else'd then it will bot have a table in flash.  
Adding a
> single case element is enough to switch between the two, I would 
guess.
> 
> --
> Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
> CrossWorks for MSP430, ARM, AVR and now MAXQ processors
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.