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

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

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


From: Sparr
Subject: [avr-gcc-list] foo++, subi vs inc?
Date: Tue, 11 Nov 2008 18:24:09 -0500

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.

reply via email to

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