Is there a way to tell the compiler/linker that all strings should be stored in flash without needing to specifically wrap each with the PSTR() macro?
I know that there is a PSTR() macro that should be used to wrap a string to declare that it should be in flash.
However I have an existing codebase that I am porting to avr_gcc and its a big and error-prone job to add PTR to every const string.
I was hoping that there is a 'magic' switch that can be turned on to tell the tools to 'just do it'?
FWIW: I am coming to avr-gcc from many (happy) years using ImageCraft AVR tools which has exactly this feature built in.
I 'need' avr-gcc because I need the ASF and the USB goodness it provides (and Imagecraft does not compile the gcc dialect 'out of the box')
Thanks in Advance..