My thanks to all involved!  Very clever!

Only reason I asked was I was comparing code between 20071221 and
20080407 (still trying to get my code running on the latest gcc) and
came across it. 

Best regards, 

Stu Bell 
DataPlay (DPHI, Inc.) 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 12:53 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; avr-gcc-list@nongnu.org;
Stu Bell
Subject: Re: [avr-gcc-list] Odd prologue for ATmega256x in
WinAVR20080407

Hey ! I wrote RTL prolog code.



-----Original Message-----
From: Weddington, Eric <[EMAIL PROTECTED]>
To: Jeff Barlow <[EMAIL PROTECTED]>; avr-gcc-list@nongnu.org; Stu Bell
<[EMAIL PROTECTED]>
Sent: Thu, 10 Apr 2008 2:42 pm
Subject: RE: [avr-gcc-list] Odd prologue for ATmega256x in
WinAVR20080407





> -----Original Message-----
> From:
> [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> org] On Behalf Of Jeff Barlow
> Sent: Thursday, April 10, 2008 9:10 AM
> To: avr-gcc-list@nongnu.org
> Subject: Re: [avr-gcc-list] Odd prologue for ATmega256x in
> WinAVR20080407
>
> Stu Bell <[EMAIL PROTECTED]>  wrote:
>
> >What does the double "rcall ." do?
>
> It just adjusts the stack pointer prior to loading it as the local 
> frame pointer. It's a fairly cute optimization actually.
>

Hi Stu,

Don't feel bad. When I first saw this, I thought the same thing: "Huh?,
What's this?" After some quick double checking in the instruction set
manual, it finally made sense. I agree with Jeff, it's quite a trick
optimization. Thanks go to Anatoly Sokolov. ;-)


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to