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
Message
RE: [lpc2000] Re: unexplained RAM use on GCC and CrrosWorks
2005-11-21 by Paul Curtis