------- Comment #9 from p dot mateja at sh dot cvut dot cz 2006-05-12 00:31
-------
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #3)
> > > Pavel, the attiny2313 has 128 Bytes of SRAM.
> >
> > I know. But there has to be way how to address it's 2kB flash.
> > I don't need the string in SRAM.
>
> To be clear:
> I have program with few calls to print(const char*) function. It's reporting
> some messages to UART.
> And the program is working just in case when all in the program strings in
> total have less than 128 bytes.
> I have tried to divide the printings to different subrutines too, but it's no
> way.
> 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?
Shame on my head.
I have finally found the PROGMEM & PSTR macros.
I'm very sorry for bothering you.
--
p dot mateja at sh dot cvut dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27556