------- Comment #10 from eweddington at cso dot atmel dot com  2006-05-12 15:10 
-------
Subject: Re:  Wrong code generation when cross compile for
 attiny2313

p dot mateja at sh dot cvut dot cz wrote:

> In other words: Is there any way how to say to gcc that const arrays shoud 
> stay
> just in flash and they are not needed in SRAM?

This has been discussed before in many places. That's what the progmem 
attribute is for: to put data in to the flash. const means essentially 
"read-only" but it should not be overloaded to mean "put the data in flash".


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27556

Reply via email to