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

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

RE: [avr-gcc-list] AvrX and pgm_read_byte_near()


From: E. Weddington
Subject: RE: [avr-gcc-list] AvrX and pgm_read_byte_near()
Date: Tue, 25 Nov 2003 15:48:46 -0700

On 25 Nov 2003 at 8:28, Brian Cuthie wrote:

> 
> Eric,
> 
> When I try to use this (in fact, when I try to use the existing "far"
> versions, too) I get the following error:
> 
> error: can't find a register in class `POINTER_Z_REGS' while reloading
> `asm'
> 
> In looking at the gcc docs it appears that it's not possible to specify
> registers in a clobber list that are bound to some input parameter. Could
> that be what's going on here?
> 
> Thanks
> 
> -brian
> 

Hmm. Yeah, I'm seeing that in the docs too. So perhaps the __LPM macros are 
not in error, but perhaps the __ELPM macros are? (for listing Z reg in 
clobber list) Interestingly, I've never had any problems with compiling 
with the __ELPM macros and I haven't heard of any similar problems...

Anybody else have thoughts on this?

Eric


reply via email to

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