Yahoo Groups archive

Lpc2000

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

Message

RE: [lpc2000] unexplained RAM use on GCC and CrrosWorks

2005-11-21 by Paul Curtis

Gus,

I don't see this take any static RAM.  Why do you think it does?

--
Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
CrossWorks for MSP430, ARM, AVR and now MAXQ processors 

> -----Original Message-----
> From: Gus [mailto:gus_is_working@...] 
> Sent: 21 November 2005 01:45
> To: lpc2000@yahoogroups.com
> Subject: [lpc2000] unexplained RAM use on GCC and CrrosWorks
> 
> put the following code in a file and compile it. it takes 240 byte 
> of RAM!!!!!!
> 
> Can anyone explain why?
> Remove any one of the cases and the RAM usage goes down to NONE!!!
> 
> int foo(int i)
> {
>     switch (i)
>     {
>             case 0x22:
>             case 0x2A:
>             case 0x2B:
>             case 0x3E:
>             case 0x5C:
>             case 0x5D:
>                     return 12;
>             break;
>     }    
> }
> 
> 
> 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> --------------------~--> 
> Get fast access to your favorite Yahoo! Groups. Make Yahoo! 
> your home page
> http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------
> ------~-> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
>

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.