[Top][All Lists]

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

RE: [avr-gcc-list] Re: [avr-libc-dev] Constant address to programmemory

From: Weddington, Eric
Subject: RE: [avr-gcc-list] Re: [avr-libc-dev] Constant address to programmemory in C
Date: Fri, 23 Nov 2007 10:21:10 -0700


> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Shaun Jackman
> Sent: Thursday, November 22, 2007 1:57 PM
> To: Joerg Wunsch; address@hidden
> Subject: [avr-gcc-list] Re: [avr-libc-dev] Constant address 
> to programmemory in C
> On Nov 22, 2007 1:44 PM, Joerg Wunsch <address@hidden> wrote:
> > As Shaun Jackman wrote:
> >
> > > The assembler has a pm(a) operator for this very reason. 
> It would be
> > > useful for avr-libc to have a similar macro.
> >
> > This rather smells like a compiler bug to me, than something where
> > library support would be a real help.  If the compiler offers the
> > feature to jump to an arbitrary address using "goto", then it's
> > responsible to translate that code into whatever is necessary to
> > accomplish the goal.  The tools always and only count in byte
> > addresses.
> I agree. Unfortunately, there's a bunch of code out there now that
> assumes goto *x needs to be fixed up with a goto *(x/2).

There is already a GCC bug filed for the above problem.

Eric Weddington

reply via email to

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