[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug? |
Date: |
Tue, 18 Dec 2001 16:41:58 +0100 |
User-agent: |
Mutt/1.2.5i |
As Chris Elmquist wrote:
> well, it seems there is a radical difference in the size and complexity
> of the code it produces then. ie,
Yep, you're right.
> I suppose it would be more correct to declare 'd' a type "register"
> above to ensure it always stays that way.
register and volatile are basically mutually exclusive.
> But it has been an interesting exercise for me to see how GCC (w/
> -Os) deals with this simple case on the AVR.
It's a general gcc feature, so other architectures should rather
experience similar behaviour.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
[avr-gcc-list] 4-bit LCD source, Mike Jones, 2001/12/17
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?, Dmitry, 2001/12/18
Re: [avr-gcc-list] GCC 3.0.2 unsigned int bug?, Carsten Beth, 2001/12/18