[Top][All Lists]

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

RE: [avr-gcc-list] Binding a register pair to a pointer

From: Weddington, Eric
Subject: RE: [avr-gcc-list] Binding a register pair to a pointer
Date: Tue, 9 Dec 2008 12:15:53 -0700


> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Parthasaradhi Nayani
> Sent: Tuesday, December 09, 2008 11:45 AM
> To: address@hidden
> Subject: [avr-gcc-list] Binding a register pair to a pointer
> Hello all,
> I have a time critical application where I have to process an 
> external interrupt request. When the interrupt occurs, I have 
> to read a port and store this data pointed by a pointer. In 
> order to reduce the time taken by pushes and pops, I would 
> like to bind a register pair to a char pointer. My search for 
> examples has not yielded any results. I have tried something 
> like "unsigned char *ptr asm ("x")" but this is throwing out 
> an error. Can some one show me an example on how to achieve 
> this? Thank you.

This is describe in the avr-libc user manual, in the FAQ. 

reply via email to

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