[Top][All Lists]

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

Re: [avr-gcc-list] Pgmspace.h Use

From: Julius Luukko
Subject: Re: [avr-gcc-list] Pgmspace.h Use
Date: Thu, 11 Aug 2005 15:16:51 +0300
User-agent: KMail/1.8.2

On Thursday 11 August 2005 14:40, Ron wrote:
> Interesting to imagine the syntax of a flash and eep aware C. Presumably
> you would just need to declare where the type instance is stored and the
> compiler handles all subsequent access under the covers. Something like:
> const _fl Array[7] = {0x10,0x20,0x30,0x40,0x50,0x60,0x70};

According to the ISO/IEC standardization working group's 
(http://www.open-std.org/jtc1/sc22/wg14/) technical report draft 
(http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1021.pdf) the above is 
quite near. On page 37 it says that "in addition to the generic address 
space, an implementation may support other, named address spaces". Then they 
give some examples:

_X char a, b, c;


_fl const int Array[7] = {0x10,0x20,0x30,0x40,0x50,0x60,0x70};

might be possible in future.


reply via email to

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