RE: [AVR-Chat] Re: gcc compiler bad behaviour
2012-04-16 by Tim Mitchell
----Original Message----
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of bayramdavies Sent: 16 April 2012 12:57 To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] Re: gcc compiler bad behaviour > So, although the > compiler is not interested in the value of AdcVal[0] and > AdcVal[1], it is obliged to read the objects. This would > be important if, for example, the read operations had > hardware side-effects, such as clearing the A-to-D > interrupt. Graham, thanks for that explanation, that makes perfect sense now. -- Tim Mitchell