avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] PSTR() in static initialisers


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] PSTR() in static initialisers
Date: Wed, 31 Jan 2018 23:13:25 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

As Paul "LeoNerd" Evans wrote:

> Hrm; that's upsettingly annoying. Is there perhaps a way this can be
> convinced into working?

I could not find a way.  You want to initialize a flash pointer, and
for that to work, you need an (array) object already in flash.  A
string literal defaults to end up in RAM.

-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]