>Your volatile qualifier is at the wrong place.  You're marking the
>object "txt" points to as volatile, not the pointer itself.  Change
>that into
>
>PGM_P volatile txt = P_Txt;
>
>and it will work.

Thank you for your fast answer. I've compiled whith those changes and it works as expected.
I supose I'll have to read more C manuals...

>Btw., to make other people's job (who are willing to help you) easier,
>please supply compilable examples (all required #includes present,
>things like "Init code here" in /* */ comment delimiters).  Thank you.

Sure I will do next time. And Thank you again

   Bolet





Sent from the AVR - gcc forum at Nabble.com:
Re: Program Space String & optimization
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to