[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Re: avr-gcc-list digest, Vol 1 #222 - 4 msgs
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Re: avr-gcc-list digest, Vol 1 #222 - 4 msgs |
Date: |
Fri, 9 Nov 2001 10:30:08 +0100 (MET) |
Patrick Lanphier <address@hidden> wrote:
> unsigned int led;
Must be:
volatile unsigned int led;
Btw., since ports are 8 bits wide,
volatile unsigned char led;
would save you one byte of RAM.
(gcc 3 + optimization is much more picky about forgotten "volatile"
qualifiers than gcc 2 has been.)
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/