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

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

RE: [avr-gcc-list] foo++, subi vs inc?


From: Weddington, Eric
Subject: RE: [avr-gcc-list] foo++, subi vs inc?
Date: Tue, 11 Nov 2008 17:00:53 -0700

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Sparr
> Sent: Tuesday, November 11, 2008 4:24 PM
> To: address@hidden
> Subject: [avr-gcc-list] foo++, subi vs inc?
> 
> Why does "foo++;" compile to "subi Rd,lo8(-(1))" instead of 
> "inc Rd"?  I am keeping global register variables in 
> registers below 16, which are not valid for subi so they get 
> duplicated to perform the increment.  I am preparing to check 
> out the machine description for the avr target, but thought I 
> would ask here before I go that deep.

What is the type of foo?




reply via email to

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