Re: [avr-gcc-list] Add 'OS_main' and 'OS_task' attributes in avr-gcc 4.2.1

2008-12-09 Thread Bob Paddock
On Mon, Jul 23, 2007 at 2:48 PM, Anatoly Sokolov [EMAIL PROTECTED] wrote: This patch add OS_main and 'OS_task' attributes in GCC 4.2.1. Function with OS_main and 'OS_task' attributes do not save any call-saved registers. I had hoped that using OS_main would get rid of the call to main, wastes

Re: [avr-gcc-list] Add 'OS_main' and 'OS_task' attributes in avr-gcc 4.2.1

2008-12-09 Thread Ruud Vlaming
On Tuesday 09 December 2008 14:39, Bob Paddock wrote: I had hoped that using OS_main would get rid of the call to main, wastes stack space, and all of the dead _exit code, which is not allowed under some design guidelines (as well as taking space), that will never be executed, but it doesn't.

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

2008-12-09 Thread Parthasaradhi Nayani
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

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

2008-12-09 Thread Weddington, Eric
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Parthasaradhi Nayani Sent: Tuesday, December 09, 2008 11:45 AM To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list] Binding a register pair to a pointer Hello all, I have a time critical

RE: [avr-gcc-list] Add 'OS_main' and 'OS_task' attributes in avr-gcc4.2.1

2008-12-09 Thread Weddington, Eric
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Ruud Vlaming Sent: Tuesday, December 09, 2008 7:44 AM To: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] Add 'OS_main' and 'OS_task' attributes in avr-gcc4.2.1 Below three

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

2008-12-09 Thread Parthasaradhi Nayani
Hello Weddington, Thanks for the mail, but the FAQ example is as follows: register unsigned char counter asm (r3) The above is an example for a single byte value, but I would like to bind a pointer which is a 16 bit value and perhaps the X register may be used. I tried using constraints also