[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Simple question
From: |
Volkmar Dierkes |
Subject: |
Re: [avr-gcc-list] Simple question |
Date: |
Mon, 31 Mar 2003 11:49:57 +0200 |
Mark,
address@hidden schrieb am 31.03.03 11:32:51:
>
> A very basic question...
sure ;-)
> im just having one of those days where i cant see the obvious answer.
Just define counter as follows:
volatile u16 counter;
And additional, you don't need to initialize with zero. All variables which are
not defined with an initial value will set to zero. If you add the initial
definition, the compiler will hold extra space where the initial value is
stored, even it is zero.
Volkmar
______________________________________________________________________________
Werden Sie kreativ! Jetzt HTML-Mails nicht nur schreiben - nein -
GESTALTEN, bei WEB.DE FreeMail! http://freemail.web.de/features/?mc=021141