[Top][All Lists]

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

Re: [avr-gcc-list] possible compiler/optimizer problem (?)

From: Gary Douglas
Subject: Re: [avr-gcc-list] possible compiler/optimizer problem (?)
Date: Mon, 30 May 2005 12:49:33 -0600
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)

Thanks everybody!

Clearly I'm a hack ;-)

I'll do some more reading...


address@hidden wrote:
       value != value;

      value = (!value); //This works...

Are these not fundamentally the same?

:-))) Nice pitfall.

!= is "not equal" comparison. Values are compared and the result od
comparison is discarded.

You should get warning about code which has no effect and also about
comparison which is allways true.

But this one is assignment: ^=


AVR-GCC-list mailing list


Gary Douglas
Manager - Network Products

Pathway Connectivity Inc.
Inglewood Plaza, Unit 103
1439 - 17 Avenue SE
Calgary, Alberta
Canada. T2G 1J9
+1.403.243-8110 x43

reply via email to

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