-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
org] On Behalf Of Daniel Barkalow
Sent: Thursday, May 10, 2007 1:56 PM
To: avr-gcc-list@nongnu.org
Subject: [avr-gcc-list] GCC does useless 16-bit operations
For the C code:
uint8_t tx_producer_index;
...
Hi Eric,
However, I am curious. What do you get with this:
uint8_t temp = (tx_producer_index++) % 64;
The wrong answer :)
It would need to be
uint8_t temp = (++tx_producer_index) % 64;
to give a functionally equivalent result.
--
Dave Hylands
Vancouver, BC, Canada
-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
org] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, May 10, 2007 9:28 PM
To: avr-gcc-list@nongnu.org
Subject: [avr-gcc-list] GCC does useless 16-bit operations
For the C code:
snip bloated code
The C