avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] typdefing 'cost' .. PROGMEM doesn't work


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] typdefing 'cost' .. PROGMEM doesn't work
Date: Fri, 1 Aug 2003 10:30:39 +0200 (MET DST)

As Reza Naima <address@hidden> wrote:

>I'm confused in how 'const' is affecting the storage of arrays the
>flash.

In no way at all.  The `const' qualifier is only a hint to the
compiler that the qualified object is not intented to be ever
modified, so it can emit warnings for possible modification attempts.

In C++, you can actually declare a constant with it, but in C, you can
only declare a variable that is not supposed to be modified.
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/


reply via email to

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