Stu Bell wrote:
[The compiler] stores the string constant in
flash and then copies it into the stack ...

The string is stored in flash only to initialize the string variable in RAM. It is copied from RAM to the automatic variable on the stack. It is important to understand that using the string initializer consumes both RAM and flash for the string as well as producing more code.

Graham.




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to