[Top][All Lists]

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

Re: [avr-gcc-list] [discussion] lpm support in avr-gcc

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] [discussion] lpm support in avr-gcc
Date: Tue, 27 Aug 2002 22:26:07 +0200
User-agent: Mutt/1.2.5i

As Ralph Stickley wrote:

> > > Using __attribute__ is IMHO fine.  But it would be ideal if
> > > this could automatically make gcc emit lpm instructions
> > > when accessing these variables.

> It seems this would require additional overhead.  If the 'C' functions are
> oblivous to the data space, then the processor, at run-time, must make the
> distinction.

No, no run-time decisions.  Like currently, you'd need a function that
has its argument declared to be a const char * __attribute__((progmem)),
but the function would then know how to handle this (and passing a char *
that is not __attribute__((progmem)) would be a pilot error).

J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org

reply via email to

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